This makes decoding certs a little faster because name attributes are full of common OIDs. ...
10 years, 5 months ago
(2013-12-02 13:29:57 UTC)
#1
This makes decoding certs a little faster because name attributes are full of
common OIDs. I'm paying an advance for making it slower again when I add more
X509v3 extensions.
https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid.py File src/python/ct/crypto/asn1/oid.py (right): https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid.py#newcode149 src/python/ct/crypto/asn1/oid.py:149: return tuple(components) Would it make sense to add this ...
10 years, 4 months ago
(2013-12-04 11:28:27 UTC)
#2
https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid.py File src/python/ct/crypto/asn1/oid.py (right): https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid.py#newcode149 src/python/ct/crypto/asn1/oid.py:149: return tuple(components) On 2013/12/04 11:28:27, Ben Laurie (Google) wrote: ...
10 years, 4 months ago
(2013-12-05 19:33:21 UTC)
#3
https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid.py
File src/python/ct/crypto/asn1/oid.py (right):
https://codereview.appspot.com/35920043/diff/1/src/python/ct/crypto/asn1/oid....
src/python/ct/crypto/asn1/oid.py:149: return tuple(components)
On 2013/12/04 11:28:27, Ben Laurie (Google) wrote:
> Would it make sense to add this to the dict here?
>
> Would it make sense to just use the dict as a cache, rather than explicit
> initialisation?
That's a very cool idea but it'd then be prudent to at least have an
upper/configurable limit. I played with it a bit but it quickly gets more
messy/thread-unsafe/slow than the little optimization is worth.
But I've meanwhile realized this is Python, so I've removed the hard-coded
second dict.
Issue 35920043: Cache encodings of known OIDs
Created 10 years, 5 months ago by ekasper
Modified 10 years, 4 months ago
Reviewers: Ben Laurie (Google), Eran
Base URL:
Comments: 2