Skip to content

Commit b9eef58

Browse files
committed
PERF: get_requirement() raise cache from 2048 to 8192 elements
1 parent 5fb46a3 commit b9eef58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pip/_internal/utils/packaging.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ def check_requires_python(
3333
python_version = version.parse(".".join(map(str, version_info)))
3434
return python_version in requires_python_specifier
3535

36-
37-
@functools.lru_cache(maxsize=2048)
36+
@functools.lru_cache(maxsize=8192)
3837
def get_requirement(req_string: str) -> Requirement:
3938
"""Construct a packaging.Requirement object with caching"""
4039
# Parsing requirement strings is expensive, and is also expected to happen

0 commit comments

Comments
 (0)