Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^5: counting backward (optimize foreach reverse low .. high

by BrowserUk (Pope)
on Mar 02, 2013 at 16:59 UTC ( #1021452=note: print w/ replies, xml ) Need Help??

in reply to Re^4: counting backward (optimize foreach reverse low .. high
in thread counting backward

Or i'll use for;;;

It's a shame you can't use the c-style for as a modifier:

cmpthese -1, { a=>q[ 1 for -1e6..0; ], b=>q[ for( my $i=1e6; $i; --$i ){ 1 } ] };; Rate b a b 14.0/s -- -26% a 19.0/s 35% --

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Comment on Re^5: counting backward (optimize foreach reverse low .. high
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021452]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2015-11-28 04:06 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls