Skip to content

Commit 81f64e7

Browse files
committed
Increased cache size limit for search_variable
This saves about 37 seconds (2m 55.07 -> 2m 18.07) in my test project of ~600 files.
1 parent 60f211a commit 81f64e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/robot/src/robotcode/robot/utils/variables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def is_variable(string: str, identifiers: str = "$@&") -> bool:
215215
return cast(bool, robot_is_variable(string, identifiers))
216216

217217

218-
@functools.lru_cache(maxsize=1024)
218+
@functools.lru_cache(maxsize=100_000)
219219
def search_variable(
220220
string: str, identifiers: str = "$@&%*", parse_type: bool = False, ignore_errors: bool = False
221221
) -> VariableMatcher:

0 commit comments

Comments
 (0)