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

Issue 3012001: Move implementation from header to source. (Closed)

Created:
10 years, 5 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
tfarina, Evan Martin
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, Erik does not do reviews, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, Peter Kasting
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Move implementation from header to source. This is an effort to speed up compile and link time, and also minimizing the size of the intermediary .o files on disk. For example, just moving the constructor/destructor from the classes in chrome/browser/pref_member.{cc,h} netted a 368k drop in total .o file size. In aggregate, this shrinks libbrowser.a by 10 megabytes, and a few odd megabytes on most other chrome .a files. A lot of this was done before I started harvesting what the most included symbols were across all of chrome's code. Most of them are in webkit, but there's plenty in base/ that are used everywhere to keep me busy for several patches to come. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52528

Patch Set 1 #

Patch Set 2 : blank line #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+797 lines, -264 lines) Patch
M base/base.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M base/command_line.h View 2 chunks +2 lines, -1 line 0 comments Download
M base/command_line.cc View 2 chunks +6 lines, -0 lines 2 comments Download
M base/env_var.h View 1 chunk +3 lines, -4 lines 0 comments Download
M base/env_var.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M base/message_loop.h View 3 chunks +3 lines, -3 lines 0 comments Download
M base/message_loop.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M base/task.h View 2 chunks +5 lines, -2 lines 2 comments Download
A base/task.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M base/tracked.h View 2 chunks +3 lines, -15 lines 2 comments Download
M base/tracked.cc View 1 chunk +22 lines, -0 lines 0 comments Download
M base/values.h View 5 chunks +7 lines, -10 lines 0 comments Download
M base/values.cc View 4 chunks +25 lines, -0 lines 0 comments Download
M base/weak_ptr.h View 4 chunks +13 lines, -41 lines 0 comments Download
A base/weak_ptr.cc View 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.h View 5 chunks +7 lines, -18 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 5 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.h View 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit.cc View 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/automation/automation_resource_routing_delegate.h View 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/browser/automation/automation_resource_routing_delegate.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/browser.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/command_updater.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/command_updater.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function.h View 5 chunks +10 lines, -17 lines 0 comments Download
M chrome/browser/extensions/extension_function.cc View 3 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/pref_member.h View 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/pref_member.cc View 5 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service.h View 5 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/sessions/tab_restore_service.cc View 4 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 2 chunks +6 lines, -14 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 4 chunks +41 lines, -66 lines 0 comments Download
A chrome/browser/tab_contents/tab_contents_delegate.cc View 1 chunk +159 lines, -0 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.h View 4 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M net/base/filter.h View 1 chunk +1 line, -1 line 0 comments Download
M net/base/filter.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M net/url_request/url_request_job.h View 5 chunks +15 lines, -21 lines 0 comments Download
M net/url_request/url_request_job.cc View 6 chunks +63 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
10 years, 5 months ago (2010-07-15 17:07:48 UTC) #1
tfarina
Should be this documented somewhere? So new people starting working on chromium will be aware ...
10 years, 5 months ago (2010-07-15 17:24:36 UTC) #2
Elliot Glaysher
On Thu, Jul 15, 2010 at 10:24 AM, <tfarina@chromium.org> wrote: > Should be this documented ...
10 years, 5 months ago (2010-07-15 17:27:09 UTC) #3
Peter Kasting
On Thu, Jul 15, 2010 at 10:26 AM, Elliot Glaysher (Chromium) < erg@chromium.org> wrote: > ...
10 years, 5 months ago (2010-07-15 17:33:28 UTC) #4
Evan Martin
In general, I'm surprised this makes a difference. http://codereview.chromium.org/3012001/diff/2001/3002 File base/command_line.cc (right): http://codereview.chromium.org/3012001/diff/2001/3002#newcode444 base/command_line.cc:444: CommandLine::CommandLine() ...
10 years, 5 months ago (2010-07-15 17:37:32 UTC) #5
Elliot Glaysher
In general, constructors and destructors are some of the worse things you can try to ...
10 years, 5 months ago (2010-07-15 18:08:10 UTC) #6
Evan Martin
10 years, 5 months ago (2010-07-15 18:11:30 UTC) #7
LGTM rubber stamp

Powered by Google App Engine
This is Rietveld 408576698