Skip to content

Commit 3968d7b

Browse files
committed
Increase cache size for _decamelize_key function to improve performance
1 parent 3b6d6ce commit 3968d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyoverkiz/_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_CAMEL_RE = re.compile(r"([A-Z]+)([A-Z][a-z])|([a-z\d])([A-Z])")
1111

1212

13-
@functools.lru_cache(maxsize=256)
13+
@functools.lru_cache(maxsize=1024)
1414
def _decamelize_key(key: str) -> str:
1515
"""Convert a single camelCase key to snake_case."""
1616
result = _CAMEL_RE.sub(r"\1\3_\2\4", key)

0 commit comments

Comments
 (0)