Skip to content

Commit

Permalink
Merge pull request ddnet#9445 from heinrich5991/pr_twlang_cache
Browse files Browse the repository at this point in the history
Don't re-scan the source tree in scripts/languages/update_all.py
  • Loading branch information
def- authored Dec 30, 2024
2 parents 9ece28e + da66e83 commit 0231445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/languages/twlang.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import functools
import os
import re
from collections import OrderedDict
Expand Down Expand Up @@ -58,6 +59,7 @@ def check_file(path):
return matches


@functools.lru_cache(None)
def check_folder(path):
englishlist = OrderedDict()
for path2, dirs, files in os.walk(path):
Expand Down

0 comments on commit 0231445

Please sign in to comment.