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

Issue 2307283002: GN Templates: Use the optimize_max compiler config. (Closed)

Created:
4 years, 3 months ago by ehmaldonado_webrtc
Modified:
4 years, 3 months ago
Reviewers:
Nico, kjellander_webrtc
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), zhuangzesen_agora.io, tlegrand-webrtc, qiang.lu, peah-webrtc, bjornv1, video-team_agora.io, tterriberry_mozilla.com, fengyue_agora.io, sdk-team_agora.io, minyue-webrtc, mflodman, Andrew MacDonald, zhengzhonghou_agora.io, stefan-webrtc, kwiberg-webrtc, danilchap, henrika_webrtc, audio-team_agora.io, hlundin-webrtc, niklas.enbom, the sun, perkj_webrtc, aluebs-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

GN Templates: Use the optimize_max compiler config. Add "//build/config/compiler:optimize_max" to rtc_add_configs and "//build/config/compiler:default_optimization" to rtc_remove_configs. This is the default optimization in GYP, and might help explain a 82.5% regression in webrtc_perf_tests at 13946:13946 BUG=chromium:641966 NOTRY=True Committed: https://crrev.com/59af8b77145b8ff33a610128d339f02f950d3e7a Cr-Commit-Position: refs/heads/master@{#14067}

Patch Set 1 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -10 lines) Patch
M webrtc/BUILD.gn View 1 chunk +0 lines, -5 lines 0 comments Download
M webrtc/build/webrtc.gni View 1 chunk +5 lines, -0 lines 0 comments Download
M webrtc/modules/audio_coding/BUILD.gn View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
ehmaldonado_webrtc
Maybe this is a good moment to commit one of the main reasons we introduced ...
4 years, 3 months ago (2016-09-05 09:16:06 UTC) #5
kjellander_webrtc
lgtm
4 years, 3 months ago (2016-09-05 09:38:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2307283002/40001
4 years, 3 months ago (2016-09-05 09:39:19 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:40001)
4 years, 3 months ago (2016-09-05 09:48:56 UTC) #10
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/59af8b77145b8ff33a610128d339f02f950d3e7a Cr-Commit-Position: refs/heads/master@{#14067}
4 years, 3 months ago (2016-09-05 09:49:03 UTC) #12
Nico
Apparently this increased 64-bit binary size of chrome significantly: https://bugs.chromium.org/p/chromium/issues/detail?id=457078#c76 Was that expected? Did you ...
4 years, 3 months ago (2016-09-06 18:14:30 UTC) #14
kjellander_webrtc
On 2016/09/06 18:14:30, Nico (away until Tuesday) wrote: > Apparently this increased 64-bit binary size ...
4 years, 3 months ago (2016-09-06 20:07:31 UTC) #15
Nico
On 2016/09/06 20:07:31, kjellander_webrtc wrote: > On 2016/09/06 18:14:30, Nico (away until Tuesday) wrote: > ...
4 years, 3 months ago (2016-09-06 21:13:13 UTC) #16
kjellander_webrtc
On 2016/09/06 21:13:13, Nico wrote: > On 2016/09/06 20:07:31, kjellander_webrtc wrote: > > On 2016/09/06 ...
4 years, 3 months ago (2016-09-07 06:10:49 UTC) #17
kjellander_webrtc
4 years, 3 months ago (2016-09-12 06:03:27 UTC) #18
Message was sent while issue was closed.
On 2016/09/07 06:10:49, kjellander_webrtc wrote:
> On 2016/09/06 21:13:13, Nico wrote:
> > On 2016/09/06 20:07:31, kjellander_webrtc wrote:
> > > On 2016/09/06 18:14:30, Nico (away until Tuesday) wrote:
> > > > Apparently this increased 64-bit binary size of chrome significantly:
> > > > https://bugs.chromium.org/p/chromium/issues/detail?id=457078#c76
> > > > 
> > > > Was that expected? Did you get a perf win from this? Is it worth it?
> > > 
> > > As you can see in the referenced bug we had a 80% regression for NetEq,
> which
> > is
> > > an important part of WebRTC. Although we don't want to break Chrome so we
> can
> > > probably either revert this again or apply the optimization more locally
> (and
> > > mark the regression as expected).
> > > However, as we understood it (when comparing GYP and GN compiler flags) it
> > seems
> > > like the default optimization changed between GYP and GN - is that not the
> > case?
> > 
> > It is true that many flags changed, but the final binary size and perf was
> > roughly the same as far as I understand.
> > 
> > Does NetEq test a code path that's hot in chrome as well?
> 
> I cross-posted your question in
> https://bugs.chromium.org/p/chromium/issues/detail?id=641966, let's keep the
> discussion there.

I'm reverting back to the default behavior in
https://codereview.webrtc.org/2334593002

Powered by Google App Engine
This is Rietveld 408576698