Re: [RFC PATCH v2] grep: allow for run time disabling of JIT in PCRE
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 29, 2019, 17:47 UTC
- Message-ID
- <xmqqh874vikk.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <2f9cc063-96fc-dc99-0e29-230f1e12c1d3@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 7 quoted lines
>> +pcre.jit:: >> + If set to false, disable JIT when using PCRE. Defaults to >> + true. >> + if set to -1 will try first to use JIT and fallback to the >> + interpreter instead of returning an error. > > Why not implement only -1, without adding this config setting?
... nor command line option. If we have an auto-fallback, I would think that makes the most sense. IIRC the first iteration with only the configuration was really about working around the (non-working) pcre-jit---if we can self-detect and skip a non-working case, that would allow us to drop end-user facing knobs, which is ideal.
Thanks for a doze of sanity.