Chromium Code Reviews
DescriptionStop caching DER-encoded certificates unnecessarily
What was intended as a CPU performance short-circuit
in SSLClientSocket for Open/BoringSSL implementations
ended up introducing rather unfortunate and
significant memory overhead, thus proving yet again
that premature optimization is the root of all evil.
While cleaning the unnecessary DER-conversion/caching
up, a further optimization to reduce the overhead
of adding certificate errors was pointed out, allowing
us to avoid the overhead of storing another copy of the
DER-encoded certificate. As //remoting-in-NaCl can now
use BoringSSL directly, this unwinds
http://crrev.com/93153 and uses the cached certificate
directly.
BUG=642082
R=davidben@chromium.org, sergeyu@chromium.org
Committed: https://crrev.com/74e99744fe3d88a5b4a759818fa813cd2d091bd7
Cr-Commit-Position: refs/heads/master@{#418352}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Feedback #Patch Set 3 : More feedback #
Total comments: 4
Patch Set 4 : Use the right syntax #Patch Set 5 : WIP debug #Patch Set 6 : More debug #Patch Set 7 : StringPiece moves #Patch Set 8 : Remove debug #
Messages
Total messages: 39 (20 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||