diff options
author | Christian Heimes <christian@cheimes.de> | 2013-01-07 20:24:18 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-01-07 20:24:18 (GMT) |
commit | 34bdeb5d81d2f772d7ed4bb263341331141d5f7b (patch) | |
tree | 6a6938ce0f855e245dd9b12758d58743b768034e | |
parent | ed6f37cad12073128a52aca2ae1e0ee394352865 (diff) | |
download | cpython-34bdeb5d81d2f772d7ed4bb263341331141d5f7b.zip cpython-34bdeb5d81d2f772d7ed4bb263341331141d5f7b.tar.gz cpython-34bdeb5d81d2f772d7ed4bb263341331141d5f7b.tar.bz2 |
Add a comment about *not* caching the hash value. Issue #9685 suggested to memorize the hash value, but the feature request was rejected because no speed ups were found.
-rw-r--r-- | Objects/tupleobject.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index ec3f91b..0a95909 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -322,6 +322,9 @@ error: 1082527, 1165049, 1082531, 1165057, 1247581, 1330103, 1082533, 1330111, 1412633, 1165069, 1247599, 1495177, 1577699 + + Tests have shown that it's not worth to cache the hash value, see + issue #9685. */ static Py_hash_t |