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