Message384147
In addition to documenting the cache size, consider a substantial increase to the limit. Compiled regex patterns tend to be very small. We can afford to have a lot of them (tens of thousands seems reasonable to me).
Regarding the suggested alternative, ISTM that calling translate() directly doesn't help much. For a cache miss, the overhead of the lru_cache() is very small relative to the work done by translate(). |
|
Date |
User |
Action |
Args |
2021-01-01 01:56:17 | rhettinger | set | recipients:
+ rhettinger, joshtriplett |
2021-01-01 01:56:16 | rhettinger | set | messageid: <1609466176.99.0.483423539071.issue42799@roundup.psfhosted.org> |
2021-01-01 01:56:16 | rhettinger | link | issue42799 messages |
2021-01-01 01:56:16 | rhettinger | create | |
|