From: Reimar Döffinger Date: Mon, 14 Dec 2015 22:49:56 +0000 (+0100) Subject: Improve tokenizer speed. X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=commitdiff_plain;h=21e752e044b6c0dd7d24e6da143068326beab2e3 Improve tokenizer speed. --- diff --git a/src/com/hughes/android/dictionary/parser/WikiTokenizer.java b/src/com/hughes/android/dictionary/parser/WikiTokenizer.java index 349bd9a..d6c8901 100644 --- a/src/com/hughes/android/dictionary/parser/WikiTokenizer.java +++ b/src/com/hughes/android/dictionary/parser/WikiTokenizer.java @@ -471,6 +471,7 @@ public final class WikiTokenizer { return token; } + final static String[] patterns = { "\n", "{{", "}}", "[[", "]]", "|", "=", "