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

Pàgina inicial
Delete this message
Autor: Giuseppe D'Angelo
Data:  
A: Zoltán Herczeg
CC: Pcre-dev
Assumpte: 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