[issue16389] re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench

Philip Jenvey report at bugs.python.org
Fri Nov 2 19:23:35 CET 2012


New submission from Philip Jenvey:

#9396 replaced a few caches in the stdlib w/ lru_cache, this made the mako_v2 benchmark on Python 3 almost 3x slower than 2.7

The benchmark results are good now that Mako was changed to cache the re itself, but the problem still stands that lru_cache seems to hurt the perf of inline res compared to 2.7. The fix for Mako did not affect the 2.7 benchmark numbers

See more info here:

http://mail.python.org/pipermail/python-dev/2012-November/122521.html

----------
components: Library (Lib)
messages: 174550
nosy: brett.cannon, ncoghlan, pjenvey, rhettinger, zzzeek
priority: normal
severity: normal
status: open
title: re._compiled_typed's lru_cache causes significant degradation of the mako_v2 bench
type: performance
versions: Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list