Compare commits

..

1 Commits

Author SHA1 Message Date
Madhav Kumar
a105de1c16
Merge 5fc82399bf into 7050ed204b 2024-03-19 22:18:01 +05:30

View File

@ -141,7 +141,7 @@ def path_tuple_to_string(path: tuple) -> str:
For get_load_path_str(), For get_load_path_str(),
introducing a simple caching mechanism to avoid recomputing regex matches for paths that have already been processed. introducing a simple caching mechanism to avoid recomputing regex matches for paths that have already been processed.
""" """
@lru_cache(maxsize=32) # Set maxsize to 32MB @lru_cache(maxsize=None)
def get_load_path_str_cached( def get_load_path_str_cached(
init_path_str: str, init_path_str: str,
load_rename_rules: Optional[list[tuple[str, str]]] = None, load_rename_rules: Optional[list[tuple[str, str]]] = None,