We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7eb71fa + af8e28e commit 84a052eCopy full SHA for 84a052e
news/12873.feature.rst
@@ -0,0 +1,2 @@
1
+Minor performance improvement when installing packages with a large number
2
+of dependencies by increasing the requirement string cache size.
src/pip/_internal/utils/packaging.py
@@ -35,7 +35,7 @@ def check_requires_python(
35
return python_version in requires_python_specifier
36
37
38
-@functools.lru_cache(maxsize=2048)
+@functools.lru_cache(maxsize=10000)
39
def get_requirement(req_string: str) -> Requirement:
40
"""Construct a packaging.Requirement object with caching"""
41
# Parsing requirement strings is expensive, and is also expected to happen
0 commit comments