in reply to Re: Re: Re: Re: Re: Optimizing the bejeezus out of a sub
in thread Optimizing the bejeezus out of a sub

That's "wont". Its a different word. I tested this on 5.6.1 withe following programs. In all cases the list op was removed from the execution path (so named as 'ex-list'). Now from the use of pushmark I infer there's some stack muckery so maybe while list() isn't doing anything, perhaps there is some other form of listification going on here. I'm not motivated enough to break out gdb to find out.

perl -MO=Concise -e 'for(@_){print}' perl -MO=Concise -e 'for(@A,@B){print}' perl -MO=Concise -e 'for(@A,@B,1){print}'

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Optimizing the bejeezus out of a sub
by sgifford (Prior) on Jun 24, 2003 at 16:34 UTC

    Wow, I've never seen that before. Is there anyplace I can find better documentation on this than B::Concise? I got an idea what was going on, but I don't really know how to interpret the various opcodes...

    Thanks for any pointers!