Skip to content

Commit

Permalink
Limit lru_cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Dec 8, 2022
1 parent 0120931 commit 5a98b44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sir/wscompat/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def convert_iso_3166_3_code_list(obj):
return l


@lru_cache()
@lru_cache(maxsize=5000)
def convert_area_inner(obj):
"""
:type obj: :class:`mbdata.models.Area`
Expand All @@ -150,7 +150,7 @@ def convert_area_simple(obj):
return area


@lru_cache()
@lru_cache(maxsize=5000)
def convert_area_for_release_event(obj):
"""
:type obj: :class:`mbdata.models.Area`
Expand Down Expand Up @@ -282,7 +282,7 @@ def convert_attribute(obj):
return attribute


@lru_cache()
@lru_cache(maxsize=5000)
def convert_artist_simple(obj, include_aliases=True):
"""
:type obj: :class:`sir.schema.modelext.CustomArtist`
Expand Down

0 comments on commit 5a98b44

Please sign in to comment.