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 andrewclegg
Recipients andrewclegg
Date 2010-02-03.15:02:10
SpamBayes Score 5.0010344e-06
Marked as misclassified No
Message-id <1265209336.56.0.865162695939.issue7846@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2010-02-03 15:02:17andrewcleggsetrecipients: + andrewclegg
2010-02-03 15:02:16andrewcleggsetmessageid: <1265209336.56.0.865162695939.issue7846@psf.upfronthosting.co.za>
2010-02-03 15:02:12andrewclegglinkissue7846 messages
2010-02-03 15:02:12andrewcleggcreate