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

Issue 2322313002: Split BindStateBase ctor for non-cancellable Bind (Closed)

Created:
4 years, 3 months ago by tzik
Modified:
4 years, 3 months ago
Reviewers:
kapishnikov, dcheng
CC:
chromium-reviews, Takashi Toyoshima, haraken
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split BindStateBase ctor for non-cancellable Bind http://crrev.com/59aa6bb1162b31d2 added a parameter of BindStateBase, and that causes 0.8% (40kB) binary size bloat on cronet, by adding a new instruction to the constructor invocation at BindState ctor. To reduce the binary size, this CL splits BindStateBase into two: one for cancellable bind and another for non-cancellable one, so that non-cancellable bind doesn't need to pass an extra argument to BindStateBase. This reduces the stripped binary size of chrome on Linux by 56kB. Committed: https://crrev.com/1fdcca3da07639548c7f37fab1c9d6c93541e4a9 Cr-Commit-Position: refs/heads/master@{#418502}

Patch Set 1 #

Total comments: 2

Patch Set 2 : +comment #

Patch Set 3 : s/IsCancellable/IsCancellableType/ #

Patch Set 4 : revert to PS2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -7 lines) Patch
M base/bind_internal.h View 1 2 3 5 chunks +32 lines, -3 lines 0 comments Download
M base/callback_internal.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M base/callback_internal.cc View 1 2 3 1 chunk +17 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (19 generated)
tzik
PTAL
4 years, 3 months ago (2016-09-09 14:24:02 UTC) #5
kapishnikov
LGTM but I don't think I am an owner. It would be good if somebody ...
4 years, 3 months ago (2016-09-09 14:54:38 UTC) #6
dcheng
https://codereview.chromium.org/2322313002/diff/1/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2322313002/diff/1/base/bind_internal.h#newcode423 base/bind_internal.h:423: : BindState(IsCancellable(), Is this a C++14ism? How does it ...
4 years, 3 months ago (2016-09-09 20:39:02 UTC) #9
dcheng
https://codereview.chromium.org/2322313002/diff/1/base/bind_internal.h File base/bind_internal.h (right): https://codereview.chromium.org/2322313002/diff/1/base/bind_internal.h#newcode423 base/bind_internal.h:423: : BindState(IsCancellable(), On 2016/09/09 20:39:01, dcheng wrote: > Is ...
4 years, 3 months ago (2016-09-09 20:39:27 UTC) #10
tzik
It's not operator() call in C++14. Just a instantiation by a constructor call, which is ...
4 years, 3 months ago (2016-09-09 23:51:16 UTC) #11
dcheng
On 2016/09/09 23:51:16, tzik wrote: > It's not operator() call in C++14. Just a instantiation ...
4 years, 3 months ago (2016-09-10 00:09:13 UTC) #12
tzik
On 2016/09/10 00:09:13, dcheng wrote: > On 2016/09/09 23:51:16, tzik wrote: > > It's not ...
4 years, 3 months ago (2016-09-12 08:28:41 UTC) #13
dcheng
On 2016/09/12 08:28:41, tzik wrote: > On 2016/09/10 00:09:13, dcheng wrote: > > On 2016/09/09 ...
4 years, 3 months ago (2016-09-12 10:09:45 UTC) #16
tzik
On 2016/09/12 10:09:45, dcheng wrote: > On 2016/09/12 08:28:41, tzik wrote: > > On 2016/09/10 ...
4 years, 3 months ago (2016-09-12 11:09:46 UTC) #19
dcheng
On 2016/09/12 11:09:46, tzik wrote: > On 2016/09/12 10:09:45, dcheng wrote: > > On 2016/09/12 ...
4 years, 3 months ago (2016-09-13 16:55:45 UTC) #25
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/2322313002/80001
4 years, 3 months ago (2016-09-14 05:15:32 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:80001)
4 years, 3 months ago (2016-09-14 07:15:21 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 07:17:26 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1fdcca3da07639548c7f37fab1c9d6c93541e4a9
Cr-Commit-Position: refs/heads/master@{#418502}

Powered by Google App Engine
This is Rietveld 408576698