diff options
author | Daniel Harding <dharding@living180.net> | 2023-09-21 10:42:50 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-21 16:46:04 +0100 |
commit | 53236c55ba8c8106afc80fa113a876ae5784f1ed (patch) | |
tree | 49acdf436f269bc01eb381297955d8217a364bc9 | |
parent | depgraph: improve reverse dep caching (diff) | |
download | portage-53236c55ba8c8106afc80fa113a876ae5784f1ed.tar.gz portage-53236c55ba8c8106afc80fa113a876ae5784f1ed.tar.bz2 portage-53236c55ba8c8106afc80fa113a876ae5784f1ed.zip |
depgraph: increase reverse dep cache size
To avoid blowing out the cache and destroying performance, increase the
maximum size of the memoization cache for the depgraph
_slot_opererator_check_reverse_dependencies() method from 100 to 1000.
Bug: https://bugs.gentoo.org/883071
Signed-off-by: Daniel Harding <dharding@living180.net>
Closes: https://github.com/gentoo/portage/pull/1092
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | lib/_emerge/depgraph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py index 0629acab2..ef7dd5405 100644 --- a/lib/_emerge/depgraph.py +++ b/lib/_emerge/depgraph.py @@ -682,7 +682,7 @@ class depgraph: # Set up a per-instance memoization cache for the # _slot_operator_check_reverse_dependencies() method: self._slot_operator_check_reverse_dependencies = functools.lru_cache( - maxsize=100 + maxsize=1000 )(self._slot_operator_check_reverse_dependencies) def _index_binpkgs(self): |