Added cache to improve speed

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-05-03 18:54:10 +03:00
parent 405237cbd5
commit 8831c8cf7e
2 changed files with 5 additions and 1 deletions

View file

@ -1,6 +1,8 @@
3.9.7 - 02/04/2022
Fixed:
- Stderr error output
Updated:
- Improve dependencies resolve speed
3.9.6 - 02/04/2022
Updated:

View file

@ -23,6 +23,7 @@
import sys
from functools import lru_cache
from slpkg.__metadata__ import MetaData as _meta_
@ -49,11 +50,12 @@ class Dependencies:
for req in requires:
if req and req not in self.black:
dependencies.append(req)
self.deep_check(dependencies, flag)
self.deep_check(tuple(dependencies), tuple(flag))
return self.dep_results
else:
return []
@lru_cache
def deep_check(self, dependencies, flag):
"""Checking if dependencies are finnished
"""