Skip to content

Commit

Permalink
Added replacement caching which may improve speed in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Belousov committed Sep 16, 2023
1 parent 3a81078 commit c165aae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addon/globalPlugins/textnormalizer/textnormalizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
except ImportError: import logging as log


@lru_cache(16384)
def normalizer_replace_text(old, new, string, case_insensitive = False):
if case_insensitive:
return string.replace(old, new)
Expand Down

0 comments on commit c165aae

Please sign in to comment.