|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Re*Re^2: The High Price of Golf, and A Surpriseby hv (Parson) |
| on Mar 04, 2003 at 00:27 UTC ( #240203=note: print w/ replies, xml ) | Need Help?? |
|
Just for the record: firstly, it used to be that even simplistic sort subs such as { $a <=> $b } would call out to perl code, but that was changed to look for certain common cases and substitute a C implementation instead; I think that change first appeared in 5.6.1, judging by comparative timings here. Secondly, the bug in B::Deparse (which occurred simply because it wasn't immediately updated for the above change) was fixed in perl-5.8.0. Just to give a feel for the difference it makes spotting and substituting a C-based routine for a perl-based one, I added an extra variant of i_sship tweaked to avoid the optimization: and here is the table I got (running under 5.8.0): Hugo
In Section
Meditations
|
|
||||||||||||||||||||