mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
65e7a10d2a
commit
842a105464
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user