[issue13150] Most of Python's startup time is sysconfig
Antoine Pitrou
report at bugs.python.org
Tue Oct 11 16:13:31 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
> I am curious: wouldn't be a way of keeping the compiled expressions in
> a static cache somewhere, so we would compile them just once and have
> both import time and runtime fast ?
Runtime shouldn't be affected. The re module has its own LRU caching.
That said, it seems regular expressions are pickleable:
b'\x80\x03cre\n_compile\nq\x00X\x00\x00\x00\x00q\x01K \x86q\x02Rq\x03.'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13150>
_______________________________________
More information about the Python-bugs-list
mailing list