develooper Front page | perl.perl5.porters | Postings from October 2014

Re: Single-item padrange?

Thread Previous | Thread Next
From:
Steffen Mueller
Date:
October 18, 2014 09:02
Subject:
Re: Single-item padrange?
Message ID:
54422C81.6080300@cpan.org
On 10/18/2014 06:56 AM, Father Chrysostomos wrote:
> I wrote:
>> Could you try running this through cachegrind, both with and without
>> the list+pushmark optimisation, and perhaps with different numbers
>> of lexicals?
>>
>> I disabled the list+pushmark optimisation on the
>> sprout/nolistpushmarkopt branch to facilitate this.
>
> BTW, a simplistic benchmark like this shows a 10% speed increase with
> the list+pushmark optimisation disabled:
>
> $ time ./miniperl -e 'for(1..20000000){() = (0,my($b,$c))}'

Do you have any idea if this might be also relevant to code that's not 
completely contrived? Maybe I'm being insufficiently creative, but this 
seems like a corner case that shouldn't be at the forefront of 
optimization efforts. Sorry if I'm just being dense. :)

--Steffen


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