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

Issue 2282563003: Store hashes in CTLogVerifierTest as char arrays rather than hex (Closed)

Created:
4 years, 3 months ago by Rob Percival
Modified:
4 years ago
Reviewers:
Ryan Sleevi
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, cbentzel+watch_chromium.org, Eran Messeri
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store hashes in CTLogVerifierTest as char arrays rather than hex Avoids the performance impact of decoding hex strings. The impact is relatively small, however, so the value of this change is debatable.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -44 lines) Patch
M net/cert/ct_log_verifier_unittest.cc View 10 chunks +65 lines, -44 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (14 generated)
Rob Percival
4 years, 3 months ago (2016-08-25 21:14:32 UTC) #3
Rob Percival
I'm still converting into std::string almost immediately, since CTLogVerifier and other CT code take their ...
4 years, 3 months ago (2016-08-25 21:17:12 UTC) #5
Ryan Sleevi
lgtm
4 years, 3 months ago (2016-09-01 00:48:47 UTC) #11
Ryan Sleevi
As for value, I thought you were saying you observed 1s of difference due to ...
4 years, 3 months ago (2016-09-01 00:49:13 UTC) #12
Rob Percival
4 years, 3 months ago (2016-09-02 16:50:17 UTC) #13
On 2016/09/01 00:49:13, Ryan Sleevi (slow) wrote:
> As for value, I thought you were saying you observed 1s of difference due to
the
> many permutations of the test.

The hash of an empty tree was the only one of these hard-coded hashes that was
used in the tests
with many permutations. There was certainly a performance gain from eliminating
the many HexToBytes
calls performed when transforming that. The rest are used only a handful of
times, so the benefit is
far less noticeable.

Powered by Google App Engine
This is Rietveld 408576698