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

トップ ページ
このメッセージを削除
著者: Giuseppe D'Angelo
日付:  
To: Zoltán Herczeg
CC: Pcre-dev
題目: 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