Skip to content

Commit f3a3f0c

Browse files
committed
Added cache size limit
1 parent 6690b13 commit f3a3f0c

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/robotcode/core/utils

1 file changed

+1
-1
lines changed

packages/core/src/robotcode/core/utils/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def normalized_path_full(path: Union[str, "os.PathLike[str]"]) -> Path:
6262
return Path(*parents)
6363

6464

65-
@functools.cache
65+
@functools.lru_cache(maxsize=100_000)
6666
def same_file(path1: Union[str, "os.PathLike[str]", Path], path2: Union[str, "os.PathLike[str]", Path]) -> bool:
6767
try:
6868
return os.path.samefile(path1, path2)

0 commit comments

Comments
 (0)