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

Issue 2078223002: Add a dedicated "optimize_speed" config to GN. (Closed)

Created:
4 years, 6 months ago by Dirk Pranke
Modified:
4 years, 6 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a dedicated "optimize_speed" config to GN. The various GN configs to select different optimization levels are confusing, and sorting them out will take a decent amount of perf testing, but in order to achieve parity w/ GYP, for now we need a dedicated config to make sure some components (e.g., v8) are compiled w/ -O3 where appropriate. R=brettw@chromium.org, machenbach@chromium.org BUG=616031, 618678, 621335 Committed: https://crrev.com/c266bec7641b1926f65d1f48614aafb2008a7c57 Cr-Commit-Position: refs/heads/master@{#400828}

Patch Set 1 #

Total comments: 2

Patch Set 2 : update w/ review feedback #

Patch Set 3 : update w/ review feedback, call it "optimize_speed" instead and make it cross-platform #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
M build/config/compiler/BUILD.gn View 1 2 1 chunk +43 lines, -0 lines 2 comments Download
M third_party/opus/BUILD.gn View 1 2 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
Dirk Pranke
See https://codereview.chromium.org/2076403002 for the intended usage in v8. I don't really like this solution, but ...
4 years, 6 months ago (2016-06-19 05:13:54 UTC) #1
Michael Achenbach
https://codereview.chromium.org/2078223002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2078223002/diff/1/build/config/compiler/BUILD.gn#newcode1378 build/config/compiler/BUILD.gn:1378: ldflags = common_optimize_on_ldflags Don't we miss the common_optimize_on_ldflags if ...
4 years, 6 months ago (2016-06-20 11:38:25 UTC) #2
Michael Achenbach
ALso: You called it optimize_posix_target_for_speed in the code. Please update either code or CL desc.
4 years, 6 months ago (2016-06-20 11:42:30 UTC) #3
Dirk Pranke
Will standardize on 'optimize_posix_target_for_speed'. https://codereview.chromium.org/2078223002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2078223002/diff/1/build/config/compiler/BUILD.gn#newcode1378 build/config/compiler/BUILD.gn:1378: ldflags = common_optimize_on_ldflags On 2016/06/20 ...
4 years, 6 months ago (2016-06-20 16:34:02 UTC) #4
Dirk Pranke
Updated. Please take another look?
4 years, 6 months ago (2016-06-20 16:36:51 UTC) #6
Michael Achenbach
lgtm
4 years, 6 months ago (2016-06-20 16:48:25 UTC) #7
brettw
lgtm
4 years, 6 months ago (2016-06-20 21:26:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2078223002/40001
4 years, 6 months ago (2016-06-20 21:52:50 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-20 23:22:58 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c266bec7641b1926f65d1f48614aafb2008a7c57 Cr-Commit-Position: refs/heads/master@{#400828}
4 years, 6 months ago (2016-06-20 23:24:36 UTC) #16
Nico
https://codereview.chromium.org/2078223002/diff/40001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2078223002/diff/40001/build/config/compiler/BUILD.gn#newcode1409 build/config/compiler/BUILD.gn:1409: config("optimize_speed") { bikeshed: I think it'd be good if ...
4 years, 6 months ago (2016-06-21 18:10:37 UTC) #18
brettw
Yes, everybody agrees these need to be refactored. Dirk and I had a long discussion ...
4 years, 6 months ago (2016-06-21 18:15:16 UTC) #19
brettw
4 years, 6 months ago (2016-06-21 18:18:36 UTC) #20
Message was sent while issue was closed.
":optimize_fast_and_bloated"

Powered by Google App Engine
This is Rietveld 408576698