Message384141
fnmatch translates shell patterns to regexes, using an LRU cache of 256 elements. The documentation doesn't mention the cache size, just "They cache the compiled regular expressions for speed.". Without this knowledge, it's possible to get pathologically bad performance by exceeding the cache size.
Please consider adding documentation of the cache size to the module documentation for fnmatch, along with a suggestion to use fnmatch.translate directly if you have more patterns than that. |
|
Date |
User |
Action |
Args |
2020-12-31 22:14:20 | joshtriplett | set | recipients:
+ joshtriplett |
2020-12-31 22:14:20 | joshtriplett | set | messageid: <1609452860.68.0.697253388073.issue42799@roundup.psfhosted.org> |
2020-12-31 22:14:20 | joshtriplett | link | issue42799 messages |
2020-12-31 22:14:20 | joshtriplett | create | |
|