aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-06-14 13:15:26 +0000
committerGravatar Yue Gan <yueg@google.com>2016-06-15 08:32:42 +0000
commit8fefee65ee7154160d06de255eafaf80e71c424a (patch)
treeff464168a685908cbafe4e7a184550f0aa30bbea /site
parentc5e393b4ba7f5f28b35cae3f55bfeb03ca31cb3e (diff)
Optimize memory use of AttributeContainer:
- Relatively few locations are set relative to the number of attributes. Replace the sparse array with a dense one. - BitSet requires a minimum of two objects (48 bytes in our current JVM), but we set an average of just six bits. Replace it with a list of indices packed into a byte[], shared with the locations array. Also add some assertions to help the next reader. -- MOS_MIGRATED_REVID=124830576
Diffstat (limited to 'site')
0 files changed, 0 insertions, 0 deletions