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

Issue 400923002: Save some gcc footprint (15 KB) in ExplodedFrameState. (Closed)

Created:
6 years, 5 months ago by Daniel Bratell
Modified:
6 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -0 lines) Patch
M content/common/page_state_serialization.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/page_state_serialization.cc View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Daniel Bratell
jochen, could you please take a look at this footprint patch? It's some code that ...
6 years, 5 months ago (2014-07-21 12:38:24 UTC) #1
jochen (gone - plz use gerrit)
lgtm
6 years, 5 months ago (2014-07-21 13:09:12 UTC) #2
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 5 months ago (2014-07-21 13:29:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/400923002/20001
6 years, 5 months ago (2014-07-21 13:31:03 UTC) #4
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 14:12:35 UTC) #5
Message was sent while issue was closed.
Change committed as 284424

Powered by Google App Engine
This is Rietveld 408576698