Skip to content

Commit

Permalink
add max to lru_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ekneg54 committed Oct 7, 2023
1 parent 37e2a4d commit d19f4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logprep/util/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_dotted_field_value(event: dict, dotted_field: str) -> Optional[Union[dic
return None


@lru_cache(maxsize=None)
@lru_cache(maxsize=100000)
def get_dotted_field_list(dotted_field: str) -> list[str]:
"""make lookup of dotted field in the dotted_field_lookup_table and ensures
it is added if not found. Additionally the string will be interned for faster
Expand Down

0 comments on commit d19f4fa

Please sign in to comment.