You can use a RegExpStack to avoid allocating a new memory area every time.
It keeps a 1K buffer that can be reused, and it is only freed if you expand
it beyond the default size.It would even be appropriately named :)

/L

On Wed, Jul 1, 2009 at 8:54 AM, Erik Corry <[email protected]> wrote:

>
> There must be a way to do this without damaging performance on regexp,
> string-unpack-code and string-validate-input.
>
> 2009/7/1  <[email protected]>:
> >
> > LGTM
> >
> > http://codereview.chromium.org/151119
> >
> > >
> >
>
>
>
> --
> Erik Corry, Software Engineer
> Google Denmark ApS.  CVR nr. 28 86 69 84
> c/o Philip & Partners, 7 Vognmagergade, P.O. Box 2227, DK-1018
> Copenhagen K, Denmark.
>
> >
>


-- 
Lasse R.H. Nielsen / [email protected]'Faith without judgement merely
degrades the spirit divine'

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to