DescriptionSort fields in ComputedStyleBase in decreasing order of size
Sort fields in ComputedStyleBase in decreasing order of size. This is
a micro optimization that improves field alignment and minimizes wasted
memory space.
From Intel on 'Coding for Performance':
https://software.intel.com/en-us/articles/coding-for-performance-data-alignment-and-structures
"One can try to minimize this memory wastage by ordering the structure
elements such that the widest (largest) element comes first, followed by
the second widest, and so on."
Another good explanation article:
https://msdn.microsoft.com/en-us/library/ewwyfdbe.aspx
BUG=628043
Committed: https://crrev.com/a642f81bd7da2c6b02bd288c443c8e42416baa58
Cr-Commit-Position: refs/heads/master@{#437813}
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 15 (8 generated)
|