|
|
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. |
DescriptionStore 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 #
Depends on Patchset: Messages
Total messages: 19 (14 generated)
The CQ bit was checked by robpercival@chromium.org to run a CQ dry run
robpercival@chromium.org changed reviewers: + rsleevi@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
I'm still converting into std::string almost immediately, since CTLogVerifier and other CT code take their hash arguments as std::string so the conversion has to happen sooner or later.
Patchset #1 (id:1) has been deleted
The CQ bit was checked by robpercival@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
As for value, I thought you were saying you observed 1s of difference due to the many permutations of the test.
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.
The CQ bit was checked by robpercival@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Patchset #2 (id:40001) has been deleted
Description was changed from ========== 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. ========== to ========== 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. ========== |