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

Issue 7706011: Use precompiled headers for most large projects. (Closed)

Created:
9 years, 4 months ago by Jói
Modified:
9 years, 3 months ago
Reviewers:
brettw, jeanluc, jeanluc1
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), dhollowa, scherkus (not reviewing)
Base URL:
ssh://joi@192.168.1.201/home/joi/c/chrome/src@master
Visibility:
Public.

Description

Use precompiled headers for most large projects where the .gyp file is not a third party file. On my machine, this speeds up a full recompile of the 'chrome' target in Debug mode by about 18%. BUG=none TEST=it builds, existing tests pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99949

Patch Set 1 #

Total comments: 16

Patch Set 2 : Addressing review comments. #

Patch Set 3 : Add comments to precompile.cc #

Total comments: 2

Patch Set 4 : Fix a couple of issues found on fresh rebuild of all. #

Patch Set 5 : Merge to lkgr #

Patch Set 6 : latest #

Patch Set 7 : Fix a couple of issues after merging to lkgr. #

Patch Set 8 : Add datestamp to precompile.h #

Patch Set 9 : Need to include windows.h for non-precompiled header builds. #

Patch Set 10 : Merge to lkgr #

Patch Set 11 : Merge to lkgr. #

Patch Set 12 : One more disabling of precompiled headers. #

Patch Set 13 : New approach, explicitly use PCH for largest projects. #

Total comments: 1

Patch Set 14 : Merge to lkgr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -128 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
A build/precompile.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +100 lines, -0 lines 0 comments Download
A build/precompile.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A build/win_precompile.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/default_plugin/default_plugin.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/upgrade_test.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome_frame/chrome_frame.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -5 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_dx_diagnostics_win.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/proxy/host_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/host_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -5 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/cld/cld.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/harfbuzz-ng/harfbuzz.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/harfbuzz/harfbuzz.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/libjingle/libjingle.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/libphonenumber/libphonenumber.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/glue/gl_bindings_skia_cmd_buffer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +96 lines, -96 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/url_request_info_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -9 lines 0 comments Download
M webkit/support/webkit_support.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Jói
9 years, 4 months ago (2011-08-22 17:45:28 UTC) #1
jeanluc1
http://codereview.chromium.org/7706011/diff/1/build/precompile.h File build/precompile.h (right): http://codereview.chromium.org/7706011/diff/1/build/precompile.h#newcode3 build/precompile.h:3: // Need to figure out if/how this can be ...
9 years, 4 months ago (2011-08-22 22:20:24 UTC) #2
jam
can't wait for this to land :) thanks for looking into this On Mon, Aug ...
9 years, 4 months ago (2011-08-22 22:57:09 UTC) #3
jeanluc1
LGTM http://codereview.chromium.org/7706011/diff/4002/build/precompile.h File build/precompile.h (right): http://codereview.chromium.org/7706011/diff/4002/build/precompile.h#newcode11 build/precompile.h:11: // included under src/chrome/browser, which was used as ...
9 years, 4 months ago (2011-08-23 14:47:27 UTC) #4
Jói
I think this is ready for commit once the trybots pass. It won't work for ...
9 years, 4 months ago (2011-08-24 13:56:32 UTC) #5
jeanluc1
LGTM
9 years, 4 months ago (2011-08-24 17:47:41 UTC) #6
Jói
Update on this change, which I didn't manage to check in before I went on ...
9 years, 3 months ago (2011-09-05 15:15:43 UTC) #7
Jói
Please take another look, I've switched to explicitly enabling precompiled headers.
9 years, 3 months ago (2011-09-06 13:29:08 UTC) #8
jeanluc1
http://codereview.chromium.org/7706011/diff/27001/content/gpu/gpu_dx_diagnostics_win.cc File content/gpu/gpu_dx_diagnostics_win.cc (right): http://codereview.chromium.org/7706011/diff/27001/content/gpu/gpu_dx_diagnostics_win.cc#newcode17 content/gpu/gpu_dx_diagnostics_win.cc:17: #pragma comment(lib, "dxguid.lib") Sorry to revisit this, but why ...
9 years, 3 months ago (2011-09-06 19:32:33 UTC) #9
Jói
Actually I think the #pragma is the way we generally link to DLLs, see http://codesearch.google.com/#search/&exact_package=chromium&q=%23pragma.comment.lib%20-file:third_party&type=cs ...
9 years, 3 months ago (2011-09-06 21:45:55 UTC) #10
jeanluc1
LGTM!
9 years, 3 months ago (2011-09-06 22:01:44 UTC) #11
Jói
I added the DEPS roll of GYP to r1033 (the GYP-side change this depends on) ...
9 years, 3 months ago (2011-09-07 09:22:33 UTC) #12
Jói
Looks like the delta is only from r1031 to r1033; r1032 is a bug fix ...
9 years, 3 months ago (2011-09-07 11:46:38 UTC) #13
jeanluc
Don't know of any reasons. It's nice that the tree is super quiet; an advantage ...
9 years, 3 months ago (2011-09-07 15:33:29 UTC) #14
brettw
Why did you rename interface in a bunch of places?
9 years, 3 months ago (2011-09-09 23:01:56 UTC) #15
brettw
On 2011/09/09 23:01:56, brettw wrote: > Why did you rename interface in a bunch of ...
9 years, 3 months ago (2011-09-09 23:18:19 UTC) #16
Jói
One of the Windows headers defines it, unfortunately. (sent from phone, pardon brevity) On Sep ...
9 years, 3 months ago (2011-09-09 23:29:32 UTC) #17
brettw
I'm reverting this, you did not get proper reviews for any of this code.
9 years, 3 months ago (2011-09-09 23:36:03 UTC) #18
Jói
9 years, 3 months ago (2011-09-09 23:51:10 UTC) #19
Brett, instead of reverting, any chance you could review and LGTM for
ppapi OWNERS?

I thought the change was trivial enough to land without OWNERS
approval, just a couple of variable renames in the ppapi code that you
take issue with, and it was hard to land, so I wanted to land it
before it got outdated again.  I'm sorry if you feel I overstepped the
bounds around OWNERS, but my understanding was that these kind of
changes that touch a lot of code but are trivial apart from the main
part of the change (which was reviewed by jeanluc@) were OK to land
like this.

Cheers,
Jói


On Fri, Sep 9, 2011 at 11:36 PM,  <brettw@chromium.org> wrote:
> I'm reverting this, you did not get proper reviews for any of this code.
>
> http://codereview.chromium.org/7706011/
>

Powered by Google App Engine
This is Rietveld 408576698