This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients eric.araujo, ezio.melotti, nadeem.vawda, ncoghlan, pitrou, python-dev, tarek, terry.reedy
Date 2011-10-11.14:13:31
SpamBayes Score 0.025744693
Marked as misclassified No
Message-id <1318342188.3277.6.camel@localhost.localdomain>
In-reply-to <1318342054.83.0.949203108281.issue13150@psf.upfronthosting.co.za>
Content
> 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.'
History
Date User Action Args
2011-10-11 14:13:31pitrousetrecipients: + pitrou, terry.reedy, ncoghlan, nadeem.vawda, tarek, ezio.melotti, eric.araujo, python-dev
2011-10-11 14:13:31pitroulinkissue13150 messages
2011-10-11 14:13:31pitroucreate