Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Doing perl efficiently

by jpl (Monk)
on May 18, 2011 at 12:14 UTC ( [id://905465]=note: print w/replies, xml ) Need Help??


in reply to Doing perl efficiently

I'll second the recommendation for Devel::NYTProf. It is a fantastic profiler! That said, your efficiency and that of those that will have to read or support your code is at least as important as the efficiency of the code itself. Go first for correctness and clarity. Worry about code efficiency only if there is a problem. Moore's law will make your code run twice as fast in a few years, but it won't help at all with correctness or clarity.

Replies are listed 'Best First'.
Re^2: Doing perl efficiently
by SuicideJunkie (Vicar) on May 18, 2011 at 14:45 UTC

    If only... Unless your code can make use of multiple cores, its not any faster than on a 2004ish machine :(.

    We ought to be up near 15Ghz by now, and where's my flying car?

      My fairly new machine is much faster than my 2004 rig, even running on one thread. More megaHz, more pipelining, 64-bit OS, and faster RAM. Not to mention faster HD, being a SSD, and more RAM so less swapping in the first place.

      Gotta be careful though. My first attempt melted down when I ran Prime95 at 4.2GHz. Lousy "open-box" deal... but that's why we test, right?

      I know per-thread it's faster than stuff put together in 2007 and 2008, which is my direct comparison. And that was a lot faster than what came before it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-23 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found