File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def fnmatch(name, pat):
3535 pat = os .path .normcase (pat )
3636 return fnmatchcase (name , pat )
3737
38- @functools .lru_cache (maxsize = 250 , typed = True )
38+ @functools .lru_cache (maxsize = 256 , typed = True )
3939def _compile_pattern (pat ):
4040 if isinstance (pat , bytes ):
4141 pat_str = str (pat , 'ISO-8859-1' )
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ def escape(pattern):
261261
262262_pattern_type = type (sre_compile .compile ("" , 0 ))
263263
264- @functools .lru_cache (maxsize = 500 , typed = True )
264+ @functools .lru_cache (maxsize = 512 , typed = True )
265265def _compile (pattern , flags ):
266266 # internal: compile pattern
267267 if isinstance (pattern , _pattern_type ):
@@ -273,7 +273,7 @@ def _compile(pattern, flags):
273273 raise TypeError ("first argument must be string or compiled pattern" )
274274 return sre_compile .compile (pattern , flags )
275275
276- @functools .lru_cache (maxsize = 500 )
276+ @functools .lru_cache (maxsize = 512 )
277277def _compile_repl (repl , pattern ):
278278 # internal: compile replacement pattern
279279 return sre_parse .parse_template (repl , pattern )
You can’t perform that action at this time.
0 commit comments