Skip to content

Commit

Permalink
Double compiled pattern cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Jan 26, 2024
1 parent a5eaf81 commit 6fd7b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/pathlib/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _is_case_sensitive(pathmod):
re = glob = None


@functools.lru_cache(maxsize=256)
@functools.lru_cache(maxsize=512)
def _compile_pattern(pat, sep, case_sensitive, recursive=True):
"""Compile given glob pattern to a re.Pattern object (observing case
sensitivity)."""
Expand Down

0 comments on commit 6fd7b01

Please sign in to comment.