From dc0968d2d9a04fd520422e2e45ca1dc0497ef3f7 Mon Sep 17 00:00:00 2001 From: Leachim <32847549+Licheam@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:50:06 +0800 Subject: [PATCH] update the old UTF-8 automata algorithm in comment. --- regex-automata/src/nfa/thompson/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regex-automata/src/nfa/thompson/compiler.rs b/regex-automata/src/nfa/thompson/compiler.rs index 497fc62b4..2021d93ea 100644 --- a/regex-automata/src/nfa/thompson/compiler.rs +++ b/regex-automata/src/nfa/thompson/compiler.rs @@ -1319,7 +1319,7 @@ impl Compiler { // compare and contrast performance of the Pike VM when the code below // is active vs the code above. Here's an example to try: // - // regex-cli find nfa thompson pikevm -b @$smallishru '(?m)^\w{20}' + // regex-cli find match pikevm -b -p '(?m)^\w{20}' -y '@$smallishru' // // With Unicode classes generated below, this search takes about 45s on // my machine. But with the compressed version above, the search takes @@ -1338,7 +1338,7 @@ impl Compiler { .map(|rng| self.c_range(rng.start, rng.end)); self.c_concat(it) }); - self.c_alt(it) + self.c_alt_iter(it) */ }