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

Issue 2322753002: GN: default to -O1 (Closed)

Created:
4 years, 3 months ago by mtklein_C
Modified:
4 years, 3 months ago
Reviewers:
jcgregorio, mtklein
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

GN: default to -O1 In a GN world we are no longer tied to the Debug/Release dichotomy of GYP, and extra_cflags makes it trivially easy to override any flags we set by default. These two together mean we don't have to make the default Debug build pointlessly unoptimized. -O1 takes negligibly longer to compile than -O0, doesn't make debugging difficult, and the code is considerably better. DM runs ~4x faster this way. Backstory: I just re-noticed we do this for our Debug MSAN builds, which has had a serious wall-time slimming effect. I was about to restore it to my GN MSAN builds when I realized, hey, maybe we should do this for all builds. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2322753002 Committed: https://skia.googlesource.com/skia/+/5e3a63075397f641536b2e463ad25d87bec6b112

Patch Set 1 #

Patch Set 2 : warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M gn/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkGlyphCache.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (14 generated)
mtklein_C
4 years, 3 months ago (2016-09-07 22:11:36 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322753002/1
4 years, 3 months ago (2016-09-07 22:11:42 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 3 months ago (2016-09-07 22:11:43 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-GN-Trybot on master.client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-GN-Trybot/builds/1016)
4 years, 3 months ago (2016-09-07 22:21:32 UTC) #12
jcgregorio
lgtm
4 years, 3 months ago (2016-09-08 01:17:40 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2322753002/20001
4 years, 3 months ago (2016-09-08 02:03:37 UTC) #19
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 02:04:39 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/5e3a63075397f641536b2e463ad25d87bec6b112

Powered by Google App Engine
This is Rietveld 408576698