diff options
author | Aleksei Rybalkin <aleksei@rybalkin.org> | 2023-08-14 20:32:48 +0200 |
---|---|---|
committer | Aleksei Rybalkin <aleksei@rybalkin.org> | 2023-08-14 20:32:48 +0200 |
commit | 842a105464f6390a433da8791d7b19b65df16f47 (patch) | |
tree | 1942129b5b3729b35b5cd519eccd6212040c8411 | |
parent | 65e7a10d2a6d2331569acacc6d1b706e699034f5 (diff) | |
download | glib-842a105464f6390a433da8791d7b19b65df16f47.tar.gz |
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.
-rw-r--r-- | glib/gregex.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |