[issue7846] Fnmatch cache is never cleared during usage
Tom Rini
report at bugs.python.org
Sat Jul 2 05:17:17 CEST 2011
Tom Rini <tom.rini at gmail.com> added the comment:
So yes, we have some code that was doing, roughly:
if any(fnmatchcase(key, pat) for pat in pattern):
refs.add(key)
on 200-300 elements, a lot. That said, many of them were not globs so we've worked around this to only use fnmatchcase on globs and just key in set otherwise. Things are now usable on python 2.6.6+ (so Ubuntu 10.10) and noise otherwise.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7846>
_______________________________________
More information about the Python-bugs-list
mailing list