[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

Raymond Hettinger report at bugs.python.org
Sun Jun 21 18:53:13 CEST 2015


Raymond Hettinger added the comment:

I would like the full functionality of the Python version to be implemented.   Guaranteeing that the hash is only calculated once prevents a reentrancy hole and provides a speed benefit as well.  Please implement exactly what the pure python version does (no more than one call to hash ever).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24483>
_______________________________________


More information about the Python-bugs-list mailing list