develooper Front page | perl.perl5.porters | Postings from July 2010

Re: Patch to make string-append on win32 100 times faster

Thread Previous | Thread Next
From:
Eric Brine
Date:
July 30, 2010 09:14
Subject:
Re: Patch to make string-append on win32 100 times faster
Message ID:
AANLkTikA6Mps-1KEp3_KyZ284Mub5utXLdosr5_+CTLM@mail.gmail.com
On Fri, Jul 30, 2010 at 10:30 AM, David Golden <xdaveg@gmail.com> wrote:

> * Why are you suggesting making the extra allocation proportional to
> the length of the string?
>

Note that this is how array currently work. Push expands arrays using the
formula

new_size = old_size * 2 + 4

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