Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(9187)

Issue 34780045: Cache encodings of read-only ASN.1 objects

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by ekasper
Modified:
10 years, 5 months ago
Reviewers:
Eran
CC:
ctlog-opensource-review_google.com
Visibility:
Public.

Description

Cache encodings of read-only ASN.1 objects

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -6 lines) Patch
M src/python/ct/crypto/asn1/type_test_base.py View 1 chunk +6 lines, -2 lines 0 comments Download
M src/python/ct/crypto/asn1/types.py View 10 chunks +54 lines, -2 lines 2 comments Download
M src/python/ct/crypto/asn1/types_test.py View 5 chunks +107 lines, -2 lines 0 comments Download

Messages

Total messages: 3
ekasper
Cache encodings for read-only objects. This is needed not so much for performance reasons, but ...
10 years, 5 months ago (2013-11-28 17:22:05 UTC) #1
Eran
LGTM https://codereview.appspot.com/34780045/diff/1/src/python/ct/crypto/asn1/types.py File src/python/ct/crypto/asn1/types.py (right): https://codereview.appspot.com/34780045/diff/1/src/python/ct/crypto/asn1/types.py#newcode1323 src/python/ct/crypto/asn1/types.py:1323: self._value[key] = value Is this intentional? I assume ...
10 years, 5 months ago (2013-11-28 20:54:37 UTC) #2
ekasper
10 years, 5 months ago (2013-11-29 11:23:48 UTC) #3
https://codereview.appspot.com/34780045/diff/1/src/python/ct/crypto/asn1/type...
File src/python/ct/crypto/asn1/types.py (right):

https://codereview.appspot.com/34780045/diff/1/src/python/ct/crypto/asn1/type...
src/python/ct/crypto/asn1/types.py:1323: self._value[key] = value
On 2013/11/28 20:54:38, Eran wrote:
> Is this intentional? I assume so, because __getitem__ refers to self._value,
> just wondering if there were any tests failing for this.

Yep, that was a real bug, now caught by tests. (See CL description.)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b