From 842a105464f6390a433da8791d7b19b65df16f47 Mon Sep 17 00:00:00 2001 From: Aleksei Rybalkin Date: Mon, 14 Aug 2023 20:32:48 +0200 Subject: gregex: remove redundant call to enable_jit_with_match_options There is no point to enable jit in g_regex_new, since JIT will be only used when we do a first match, and at that point enable_jit_with_match_options will be called again already and will update the options set in g_regex_new. Instead just run it at first match for the first time, to the same end result. --- glib/gregex.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glib/gregex.c b/glib/gregex.c index 39b9edeec..f6b2b716f 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -1764,7 +1764,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS regex->orig_compile_opts = compile_options; regex->match_opts = pcre_match_options; regex->orig_match_opts = match_options; - regex->jit_status = enable_jit_with_match_options (regex, regex->match_opts); return regex; } -- cgit v1.2.3