Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 933823002: Avoid large inlined automatic methods in IndexedDB code. (Closed)

Created:
5 years, 10 months ago by Daniel Bratell
Modified:
5 years, 10 months ago
Reviewers:
jam, jsbell, cmumford
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -18 lines) Patch
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_blob_info.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_blob_info.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_metadata.h View 1 3 chunks +13 lines, -8 lines 0 comments Download
M content/browser/indexed_db/indexed_db_metadata.cc View 1 3 chunks +39 lines, -3 lines 0 comments Download
M content/browser/indexed_db/indexed_db_value.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_value.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M content/common/indexed_db/indexed_db_key.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/common/indexed_db/indexed_db_key_path.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key_path.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/common/indexed_db/indexed_db_key_range.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/indexed_db/indexed_db_key_range.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/public/browser/indexed_db_info.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/indexed_db_info.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
Daniel Bratell
jsbell, can you please take a look. IndexedDB classes still turn up at the top ...
5 years, 10 months ago (2015-02-17 14:11:01 UTC) #2
cmumford
https://codereview.chromium.org/933823002/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/933823002/diff/1/content/browser/indexed_db/indexed_db_backing_store.cc#newcode4409 content/browser/indexed_db/indexed_db_backing_store.cc:4409: operator=(const WriteDescriptor& other) = default; Space before } // ...
5 years, 10 months ago (2015-02-17 16:34:50 UTC) #4
Daniel Bratell
Thanks for the review. I think this version should be better formatted (though long class ...
5 years, 10 months ago (2015-02-18 13:55:45 UTC) #5
jsbell
lgtm Some of the impls are still not spaced out, but clang-format doesn't complain so ...
5 years, 10 months ago (2015-02-18 22:29:38 UTC) #6
Daniel Bratell
On 2015/02/18 22:29:38, jsbell wrote: > lgtm > > Some of the impls are still ...
5 years, 10 months ago (2015-02-19 09:33:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933823002/40001
5 years, 10 months ago (2015-02-19 09:33:41 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/43788)
5 years, 10 months ago (2015-02-19 09:37:11 UTC) #11
Daniel Bratell
jam, can you please take a look at the changes in content/public? jsbell has done ...
5 years, 10 months ago (2015-02-19 13:42:28 UTC) #13
jam
lgtm
5 years, 10 months ago (2015-02-19 19:05:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933823002/40001
5 years, 10 months ago (2015-02-19 19:08:19 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-19 19:13:06 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 19:14:21 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1027bb83a75224af86c8ab8c3526a1dba5fc7243
Cr-Commit-Position: refs/heads/master@{#317090}

Powered by Google App Engine
This is Rietveld 408576698