develooper Front page | perl.perl5.porters | Postings from December 2016

Re: DAVEM TPF grant#2 report #152

Thread Previous
From:
Sawyer X
Date:
December 8, 2016 12:39
Subject:
Re: DAVEM TPF grant#2 report #152
Message ID:
a8b016bf-f453-8f64-c089-13fd5fb299f9@gmail.com


On 12/05/2016 04:24 PM, Dave Mitchell wrote:
> I spent last week mostly looking for quick wins on speeding up perl
> compile-time, using 'perl -MCPAN -e1' as a typical example of loading and
> compiling several .pm files.
>
> My initial work on Perl_keyword() made no difference, and it turned out I
> had mis-read my original measurements of this function and had incorrectly
> concluded that it was slow.
>
> After that, I tweaked Perl_yyparse() and shaved ~2% off the compile time;
> then tweaked Perl_sv_gets() and shaved another ~2% off, and also got a
> pleasing run-time boost for line reading, with reading a big list of words
> now ~8% faster on my system:
>
>     perl -e'$i++ while (<>)' /usr/share/dict/words

This is very impressive. :)


Thread Previous


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