• bratell's avatar
    Avoid large inlined automatic methods in IndexedDB code. · 1027bb83
    bratell authored
    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=
    
    Review URL: https://codereview.chromium.org/933823002
    
    Cr-Commit-Position: refs/heads/master@{#317090}
    1027bb83
indexed_db_blob_info.h 2.88 KB