MC: Enable compiled matches for Token::findmatch() and Token::findsimplematch()

Speed is exactly the same and the --verify mode of the
match compiler ensured everything works as expected.
This commit is contained in:
Thomas Jarosch 2013-01-16 21:50:32 +01:00
parent e22b1f7740
commit 4fb6751d08
1 changed files with 1 additions and 2 deletions

View File

@ -515,8 +515,7 @@ class MatchCompiler:
line = self._replaceTokenMatch(line)
# Compile Token::findsimplematch
# NOTE: Not enabled for now since the generated code is slower than before.
# line = self._replaceTokenFindMatch(line)
line = self._replaceTokenFindMatch(line)
# Cache plain C-strings in C++ strings
line = self._replaceCStrings(line)