From 7ed5d53fe63e0d761918afbb63d8783e4da38233 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 19 Jul 2018 18:34:40 +1000 Subject: [PATCH] Fix RegexCompileFlags::Backwards having the same value as Optimize That means every Optimized regex had the Backwards version compiled as well, which doubled the time it took to compile them and doubled the memory usage of regex. This should improve #2152 --- src/regex_impl.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/regex_impl.hh b/src/regex_impl.hh index 155eb7ac..9ab0e55d 100644 --- a/src/regex_impl.hh +++ b/src/regex_impl.hh @@ -120,8 +120,8 @@ enum class RegexCompileFlags None = 0, NoSubs = 1 << 0, Optimize = 1 << 1, - Backward = 1 << 1, - NoForward = 1 << 2, + Backward = 1 << 2, + NoForward = 1 << 3, }; constexpr bool with_bit_ops(Meta::Type) { return true; }