Message145348
> 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.' |
|
Date |
User |
Action |
Args |
2011-10-11 14:13:31 | pitrou | set | recipients:
+ pitrou, terry.reedy, ncoghlan, nadeem.vawda, tarek, ezio.melotti, eric.araujo, python-dev |
2011-10-11 14:13:31 | pitrou | link | issue13150 messages |
2011-10-11 14:13:31 | pitrou | create | |
|