Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Inline subs?

by PodMaster (Abbot)
on May 02, 2003 at 07:15 UTC ( [id://254925]=note: print w/replies, xml ) Need Help??


in reply to Inline subs?

This particular loop goes through millions of iterations. Now the difference in run times between using a sub versus copying and pasting the code was under 1 minute,
That doesn't really paint a picture.
How long does a normal run take? 10 minutes? 2 minutes? 10 Hours?
How long does the other one take? 9 minutes? 1 minute? 9 hours and 59 minutes?
What's the percent difference? (       %10?       %50?       %0.16?)

If the increase is %50, i'd say go for it (what broquaint showed).
If it's %10 percent, maybe, but if it's 0.16? Forget it.


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
I run a Win32 PPM repository for perl 5.6x+5.8x. I take requests.
** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-26 04:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found