DescriptionAvoid large inlined automatic methods in IndexedDB code.
The chromium base policy is to not inline code but since automatically
generated code and templates easily become inlined it can happen
anyway. This explicitly outlines destructors, copy constructors and
assignment operators in the IndexedDB code for a win of
11 KB of x64 machine code. Most of it (maybe 8 KB) from IndexedDBKey.
clang x64 numbers:
Total change: -11795 bytes
==========================
42 added, totalling +3270 bytes across 13 sources
25 removed, totalling -5883 bytes across 14 sources
9 grown, for a net change of +1556 bytes (7936 bytes before, 9492 bytes after) across 6 sources
60 shrunk, for a net change of -10738 bytes (54277 bytes before, 43539 bytes after) across 17 sources
BUG=
Committed: https://crrev.com/1027bb83a75224af86c8ab8c3526a1dba5fc7243
Cr-Commit-Position: refs/heads/master@{#317090}
Patch Set 1 #
Total comments: 14
Patch Set 2 : Fixing format. #Patch Set 3 : One more CONTENT_EXPORT #Messages
Total messages: 18 (6 generated)
|