Skip to content

Commit

Permalink
Add caching to _user_overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Oct 5, 2019
1 parent 56c3c9d commit cbe4d87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dataclasses_json/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def default(self, o) -> Json:
return result


@lru_cache(maxsize=128)
def _user_overrides(cls):
confs = ['encoder', 'decoder', 'mm_field', 'letter_case']
FieldOverride = namedtuple('FieldOverride', confs)
Expand Down

0 comments on commit cbe4d87

Please sign in to comment.