You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ssa/sparseMap and sparseSet allocate a "sparse" array with length proportional to the size of an ID (used to index Blocks and Values) containing indices of elements in a "dense" array that must necessarily not be larger than the sparse array.
It is therefore sufficient to use an int32 as elements of the sparse array, but currently it is an int, or 64 bits on quite a few Go platforms. We could save space by shrinking these.
The text was updated successfully, but these errors were encountered:
dr2chase
changed the title
sparseMaps and sparseSets could shrink size of "sparse" arrays
cmd/compile: sparseMaps and sparseSets could shrink size of "sparse" arrays
May 17, 2016
ssa/sparseMap and sparseSet allocate a "sparse" array with length proportional to the size of an ID (used to index Blocks and Values) containing indices of elements in a "dense" array that must necessarily not be larger than the sparse array.
It is therefore sufficient to use an int32 as elements of the sparse array, but currently it is an int, or 64 bits on quite a few Go platforms. We could save space by shrinking these.
The text was updated successfully, but these errors were encountered: