]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 13 Jan 2025 01:04:13 +0000 (02:04 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 13 Jan 2025 01:04:13 +0000 (02:04 +0100)
- function version_helper.remove() is now cached

fba/helpers/version.py

index 3af545680a94d00582bf68a8d666b150faa88e21..4de65e5fa66ef010325d5f35bb6e68fcba7c07a1 100644 (file)
@@ -16,6 +16,8 @@
 import logging
 import re
 
+from functools import lru_cache
+
 from fba.helpers import software as software_helper
 
 # Pattern instance for version numbers
@@ -34,6 +36,7 @@ logging.basicConfig(level=logging.INFO)
 logger = logging.getLogger(__name__)
 #logger.setLevel(logging.DEBUG)
 
+@lru_cache
 def remove(software: str) -> str:
     logger.debug("software='%s' - CALLED!", software)