]> granicus.if.org Git - re2c/commitdiff
libre2c: small performance improvement in POSIX TNFA matcher.
authorUlya Trofimovich <skvadrik@gmail.com>
Tue, 5 Feb 2019 17:21:48 +0000 (17:21 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Tue, 5 Feb 2019 21:05:31 +0000 (21:05 +0000)
re2c/lib/regexec_nfa_posix.cc

index 27475742a585663136adcfc5156568ba84425fc6..16a2d6e26e16de55abe934a88fd0f2e79fa6aa77 100644 (file)
@@ -53,6 +53,7 @@ void reach_on_symbol(simctx_t &ctx, uint32_t sym)
                 if (r->lower() <= sym && sym < r->upper()) {
                     conf_t c = {s->ran.out, index(nfa, s), i->thist};
                     reach.push_back(c);
+                    break;
                 }
             }
         }