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:
parent
e22b1f7740
commit
4fb6751d08
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue