Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase cache size #207

Merged
merged 2 commits into from
Nov 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions camel_converter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def dict_to_pascal(data: dict[Any, Any]) -> dict[Any, Any]:
return converted


@lru_cache(maxsize=256)
@lru_cache(maxsize=4096)
def to_camel(snake_string: str) -> str:
"""Converts a snake case string to camel case.

Expand All @@ -113,7 +113,7 @@ def to_camel(snake_string: str) -> str:
return words[0] + "".join(word.title() for word in words[1:])


@lru_cache(maxsize=256)
@lru_cache(maxsize=4096)
def to_snake(camel_string: str) -> str:
"""Converts a camel case or pascal case string to snake case.

Expand All @@ -128,7 +128,7 @@ def to_snake(camel_string: str) -> str:
return "_".join(word.lower() for word in words)


@lru_cache(maxsize=256)
@lru_cache(maxsize=4096)
def to_pascal(snake_string: str) -> str:
"""Converts a snake case string to pascal case.

Expand Down