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

Re^2: Adding a lot of small integers

by kappa (Chaplain)
on Jan 10, 2010 at 01:07 UTC ( [id://816564]=note: print w/replies, xml ) Need Help??


in reply to Re: Adding a lot of small integers
in thread Adding a lot of small integers

Thanks, I like this top-down approach! Somehow, it didn't come to me in the first place.

Btw, I managed to squeeze some more time from your second variant by replacing @s = () with @s = (0) x 100. Benefit from pre-allocating memory for all elements, I suppose.

--kap

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found