Author joshtriplett
Recipients joshtriplett
Date 2020-12-31.22:14:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:20joshtriplettsetrecipients: + joshtriplett
2020-12-31 22:14:20joshtriplettsetmessageid: <>
2020-12-31 22:14:20joshtriplettlinkissue42799 messages
2020-12-31 22:14:20joshtriplettcreate