Analytica uses a compact and efficient internal representation for sparse arrays and for arrays with many repeated values, so that they do not consume a lot of memory. If an array is a copy or a part of another array, the arrays may share the slices they have in common, which can also save memory.
Analytica’s internal representation of arrays is able to accommodate certain forms of sparseness, such as shared subarrays and constant subvectors. When such patterns of sparseness occur within array
A, the CompressMemoryUsedBy function can be used to condense the internal representation to leverage the sparseness of
A. For more details on that, see CompressMemoryUsedBy.