Skip to content

Commit 57592d4

Browse files
committed
ltp: optimize code
Following optimizations for the ltp framework: - usage of frozenset to speed lookup from O(n) to O(1) - compile regex once at import time - use fastest types when possible to reduce overload Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
1 parent 881b16b commit 57592d4

File tree

1 file changed

+125
-168
lines changed

1 file changed

+125
-168
lines changed

0 commit comments

Comments
 (0)