commit: 53236c55ba8c8106afc80fa113a876ae5784f1ed Author: Daniel Harding <dharding <AT> living180 <DOT> net> AuthorDate: Thu Sep 21 07:42:50 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Sep 21 15:46:04 2023 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=53236c55
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 <AT> living180.net> Closes: https://github.com/gentoo/portage/pull/1092 Signed-off-by: Sam James <sam <AT> gentoo.org> lib/_emerge/depgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_emerge/depgraph.py b/lib/_emerge/depgraph.py index 0629acab22..ef7dd54052 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):