Optimize checking long lines for speed

This commit is contained in:
DarkPhoenix
2019-06-06 09:09:25 +03:00
parent e77ada4e8c
commit 1a3a656879

View File

@@ -17,7 +17,11 @@ def isCharCjk(char):
def isStringCjk(string):
checked = set()
for char in string:
if char in checked:
continue
checked.add(char)
if isCharCjk(char):
return True
return False