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.
This commit is contained in:
Aleksei Rybalkin 2023-08-14 20:32:48 +02:00
parent 65e7a10d2a
commit 842a105464

View File

@ -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;
}