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

Re: Single-item padrange?

Thread Previous | Thread Next
Steffen Mueller
October 18, 2014 09:02
Re: Single-item padrange?
Message ID:
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. :)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About