diff --git a/codeflash/models/models.py b/codeflash/models/models.py index 36c9869eb..04ad40405 100644 --- a/codeflash/models/models.py +++ b/codeflash/models/models.py @@ -1,6 +1,7 @@ from __future__ import annotations from collections import Counter, defaultdict +from functools import lru_cache from typing import TYPE_CHECKING import libcst as cst @@ -411,6 +412,7 @@ def get_test_type_by_original_file_path(self, file_path: Path) -> TestType | Non ) @staticmethod + @lru_cache(maxsize=4096) def _normalize_path_for_comparison(path: Path) -> str: """Normalize a path for cross-platform comparison.