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

Issue 302643003: Remove unnecessary copies in CRLSet parsing. (Closed)

Created:
6 years, 7 months ago by Philippe
Modified:
6 years, 6 months ago
Reviewers:
pasko, agl
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Remove unnecessary copies in CRLSet parsing. This showed up in Chrome Traces covering the startup of Chrome for Android. CRLSet parsing was taking 70ms of CPU on Nexus 4 (although this is happening on the File thread). That cost is now down to 18ms. There are certainly further ways to decrease this even more though. BUG=376793 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274607

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Egor's comments #

Total comments: 2

Patch Set 3 : Address Adam's comment #

Patch Set 4 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -19 lines) Patch
M chrome/browser/net/crl_set_fetcher.cc View 2 chunks +8 lines, -2 lines 0 comments Download
M net/cert/crl_set.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/crl_set.cc View 1 2 3 6 chunks +37 lines, -15 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Philippe
6 years, 7 months ago (2014-05-26 18:08:10 UTC) #1
Philippe
https://codereview.chromium.org/302643003/diff/1/net/cert/crl_set.h File net/cert/crl_set.h (right): https://codereview.chromium.org/302643003/diff/1/net/cert/crl_set.h#newcode8 net/cert/crl_set.h:8: #include <map> JFYI, I will remove this in the ...
6 years, 7 months ago (2014-05-26 18:09:42 UTC) #2
pasko
overall looks nice! it would be interesting to know an estimate of a typical crl_set ...
6 years, 7 months ago (2014-05-26 18:41:11 UTC) #3
Philippe
Thanks, Egor! https://codereview.chromium.org/302643003/diff/1/net/cert/crl_set.cc File net/cert/crl_set.cc (right): https://codereview.chromium.org/302643003/diff/1/net/cert/crl_set.cc#newcode169 net/cert/crl_set.cc:169: memcpy(&serial_length, data->data(), sizeof(uint8)); On 2014/05/26 18:41:11, pasko ...
6 years, 7 months ago (2014-05-26 18:53:39 UTC) #4
Philippe
Adding Adam.
6 years, 6 months ago (2014-05-28 11:26:29 UTC) #5
Philippe
On 2014/05/28 11:26:29, Philippe wrote: > Adding Adam. Ping Adam :)
6 years, 6 months ago (2014-06-02 11:47:10 UTC) #6
agl
LGTM https://codereview.chromium.org/302643003/diff/20001/net/cert/crl_set.cc File net/cert/crl_set.cc (right): https://codereview.chromium.org/302643003/diff/20001/net/cert/crl_set.cc#newcode162 net/cert/crl_set.cc:162: out_serials->reserve(num_serials); Previously the memory usage of this code ...
6 years, 6 months ago (2014-06-02 18:07:25 UTC) #7
Philippe
Thanks, Adam! https://codereview.chromium.org/302643003/diff/20001/net/cert/crl_set.cc File net/cert/crl_set.cc (right): https://codereview.chromium.org/302643003/diff/20001/net/cert/crl_set.cc#newcode162 net/cert/crl_set.cc:162: out_serials->reserve(num_serials); On 2014/06/02 18:07:25, agl wrote: > ...
6 years, 6 months ago (2014-06-03 08:21:03 UTC) #8
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 6 months ago (2014-06-03 08:21:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/302643003/40001
6 years, 6 months ago (2014-06-03 08:21:49 UTC) #10
Philippe
The CQ bit was unchecked by pliard@chromium.org
6 years, 6 months ago (2014-06-03 11:09:53 UTC) #11
Philippe
The CQ bit was checked by pliard@chromium.org
6 years, 6 months ago (2014-06-03 11:17:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/302643003/60001
6 years, 6 months ago (2014-06-03 11:18:30 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-03 17:17:26 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 20:34:07 UTC) #15
Message was sent while issue was closed.
Change committed as 274607

Powered by Google App Engine
This is Rietveld 408576698