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

Issue 1070903003: Optimize BitStreamReader, speed up EV Whitelist loading (Closed)

Created:
5 years, 8 months ago by ian fette
Modified:
5 years, 8 months ago
Reviewers:
jam, Eran Messeri
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Optimize BitStreamReader, speed up EV Whitelist loading The EV Certificate Whitelist loads ~1MB of data using BitStreamReader. Currently this is read in one bit at a time. Changing BitStreamReader to support byte reads sped up loading by about 65% on my computer. BUG=457949 TEST=bit_stream_reader_unittest.cc Committed: https://crrev.com/ca0d5d46c95fa5e8d5c89a979baba0c5b6bbefd0 Cr-Commit-Position: refs/heads/master@{#325286}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move logic from ReadBits to ReadByte helper #

Patch Set 3 : Remove unnecessary &0xff - forgot uint8_t is exactly 1 byte not at least 1 byte #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M components/packed_ct_ev_whitelist/bit_stream_reader.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/packed_ct_ev_whitelist/bit_stream_reader.cc View 1 2 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
ian fette
5 years, 8 months ago (2015-04-08 22:49:07 UTC) #1
Ryan Sleevi
As I shared on the bug, I don't think this is a high-priority CL. If ...
5 years, 8 months ago (2015-04-09 01:33:57 UTC) #3
ian fette
https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc File components/packed_ct_ev_whitelist/bit_stream_reader.cc (right): https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc#newcode41 components/packed_ct_ev_whitelist/bit_stream_reader.cc:41: << (num_bits - 8); On 2015/04/09 01:33:57, Ryan Sleevi ...
5 years, 8 months ago (2015-04-09 02:43:06 UTC) #4
Ryan Sleevi
https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc File components/packed_ct_ev_whitelist/bit_stream_reader.cc (right): https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc#newcode41 components/packed_ct_ev_whitelist/bit_stream_reader.cc:41: << (num_bits - 8); On 2015/04/09 02:43:06, ian fette ...
5 years, 8 months ago (2015-04-09 02:57:16 UTC) #5
ian fette
PTAL https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc File components/packed_ct_ev_whitelist/bit_stream_reader.cc (left): https://codereview.chromium.org/1070903003/diff/1/components/packed_ct_ev_whitelist/bit_stream_reader.cc#oldcode10 components/packed_ct_ev_whitelist/bit_stream_reader.cc:10: On 2015/04/09 01:33:57, Ryan Sleevi wrote: > Don't ...
5 years, 8 months ago (2015-04-09 16:22:14 UTC) #6
ian fette
Can I get an LGTM? I made your requested changes, seems pretty straightforward. Local results ...
5 years, 8 months ago (2015-04-14 18:18:39 UTC) #7
ian fette
Comments were addressed, not getting a response, changing reviewer. On 2015/04/14 18:18:39, ian fette wrote: ...
5 years, 8 months ago (2015-04-15 18:10:58 UTC) #9
jam
lgtm
5 years, 8 months ago (2015-04-15 18:11:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1070903003/40001
5 years, 8 months ago (2015-04-15 18:12:10 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-15 19:15:06 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-15 19:16:06 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ca0d5d46c95fa5e8d5c89a979baba0c5b6bbefd0
Cr-Commit-Position: refs/heads/master@{#325286}

Powered by Google App Engine
This is Rietveld 408576698