Re: [pcre-dev] A tweak for the NO_RECURSE option

Página superior
Eliminar este mensaje
Autor: Philip Hazel
Fecha:  
A: Graycode
Cc: pcre-dev
Asunto: Re: [pcre-dev] A tweak for the NO_RECURSE option
On Mon, 12 Dec 2011, Graycode wrote:

> With the modification shown below, the stack is used for the initial
> frame and only recursions are allocated from the heap if needed. A
> heap allocation would no longer be needed every time the match()
> process is invoked.


I did some simple tests and confirmed that putting the top-level frame
on the heap does give a significant performance improvement. I have
applied your patch and committed the file. Thanks for researching this.

Philip

--
Philip Hazel