DescriptionSave some gcc footprint (15 KB) in ExplodedFrameState.
Inlining the assignment and copy constructor for a class
like ExplodedFrameState exploded the machine code in stl::vector.
gcc:
Total change: -14969 bytes
==========================
2 added, totalling +504 bytes across 1 sources
1 removed, totalling -3387 bytes across 1 sources
0 added, totalling 0 bytes across 0 sources
3 shrunk, for a net change of -12086 bytes (14716 bytes before, 2630 bytes after) across 2 sources
It also helps for clang which normally ignores programmers hints to inline anyway:
clang:
Total change: -918 bytes
========================
1 added, totalling +263 bytes across 1 sources
3 removed, totalling -1098 bytes across 2 sources
2 grown, for a net change of +161 bytes (1822 bytes before, 1983 bytes after) across 1 sources
1 shrunk, for a net change of -244 bytes (1401 bytes before, 1157 bytes after) across 1 sources
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284424
Patch Set 1 : ExplodedFrameSet - not inlined #
Messages
Total messages: 5 (0 generated)
|