Re: [pcre-dev] JIT have very limited applicability

Kezdőlap
Üzenet törlése
Szerző: Giuseppe D'Angelo
Dátum:  
Címzett: Zoltán Herczeg
CC: Pcre-dev
Tárgy: Re: [pcre-dev] JIT have very limited applicability
On 28 July 2013 19:12, Zoltán Herczeg <hzmester@???> wrote:
> In short JIT only helps if you compile a pattern once, and use it several times. It is inefficient for searching a pattern once in a small string like checking a version string.


This is the same strategy I've implemented in Qt (in
QRegularExpression) -- if a pattern gets used more than a dozen times,
we try to JIT-optimize it.

(...this reminds me that I should add an API for controlling that...)

HTH,
--
Giuseppe D'Angelo