[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench
Ezio Melotti
report at bugs.python.org
Sat Nov 3 03:29:30 CET 2012
Ezio Melotti added the comment:
> re.compile() calls _compile() which has the lru_cache decorator so it
> will trigger it.
What's the point of using the lru_cache for compiled regexes?
Unless I'm missing something, re.compile() should just return the compiled regex without going though lru_cache and needlessly wasting time and cache's slots.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16389>
_______________________________________
More information about the Python-bugs-list
mailing list