[issue7846] Fnmatch cache is never cleared during usage

R. David Murray report at bugs.python.org
Thu Jun 30 17:08:00 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Well, it's unnoficially configurable pre-3.2 (set _MAXCACHE on the module).  The lru_cache implementation doesn't have such an undocumented way of tweaking the limit.  In neither case, however, is it true that "nothing is ever cached".  You are saying that you are dealing with more than 100 patterns in a single application?  (256 if you are using 3.2, and in that case it is an LRU cache and so should perform well unless your more-than-256 patterns are used in a cyclical fashion.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7846>
_______________________________________


More information about the Python-bugs-list mailing list