develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #99870] Capturing matches in regex against large strings (8MB) are slow

Thread Previous | Thread Next
From:
Matthew Horsfall
Date:
September 24, 2011 18:17
Subject:
Re: [perl #99870] Capturing matches in regex against large strings (8MB) are slow
Message ID:
367CD549-BBDD-4539-9ACA-424E568F92EC@gmail.com
That coincides with other tests that I've done - capture matching against the 8MB string causes an 8MB growth in memory the first fee times it's done. 

-- Matthew Horsfall (alh)

On Sep 24, 2011, at 9:08 PM, "tchrist1 via RT" <perlbug-followup@perl.org> wrote:

> I bet something is preallocating a capture SV
> that's the same size as the original string.
> 
> --tom
> 
> 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About