http://www.perlmonks.org?node_id=658783


in reply to Re: 5:10: Why is this slower than 5.8.8?
in thread 5:10: Why is this slower than 5.8.8?

There's a big diference between 'common/not recommended', and almost 50% slower. And with all due respect to PBP, using three lines of shift instead of = @_ is just silly in some ways. To each their own.
  • Comment on Re^2: 5:10: Why is this slower than 5.8.8?

Replies are listed 'Best First'.
Re^3: 5:10: Why is this slower than 5.8.8?
by doom (Deacon) on Dec 23, 2007 at 18:54 UTC
    Well, obviously it would be better if there wasn't a speed penalty associated with array assigns, but since there is it might be better to live with the extra lines of shifts, even if they seem inelegant.

    Anyway, the main point is that we should probably assume that this is a FreeBSD oddity of some sort (ala the "malloc" issue under discussion), unless someone chimes in with some data that shows the contrary.