Message98786
The fnmatch module has a cache of translation between glob patterns and compiled regular expressions. However this cache is never emptied; only added to. I am writing a python program which as part of its execution checks millions of unique globs - this causes the fnmatch cache to grow enormous.
Attached is a patch to limit the size of the fnmatch cache to 100 (chosen to be the same size as the re module). |
|
Date |
User |
Action |
Args |
2010-02-03 15:02:17 | andrewclegg | set | recipients:
+ andrewclegg |
2010-02-03 15:02:16 | andrewclegg | set | messageid: <1265209336.56.0.865162695939.issue7846@psf.upfronthosting.co.za> |
2010-02-03 15:02:12 | andrewclegg | link | issue7846 messages |
2010-02-03 15:02:12 | andrewclegg | create | |
|