Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Optimization Help on Perl Hash Traversal (eval use)

by CountZero (Bishop)
on Feb 06, 2013 at 22:21 UTC ( #1017514=note: print w/replies, xml ) Need Help??

in reply to Optimization Help on Perl Hash Traversal (eval use)

I wonder if there is any need to sort the keys of your outer and middle loop. If you are looking for any, even small, time-savings, here might be a quick bonus.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Replies are listed 'Best First'.
Re^2: Optimization Help on Perl Hash Traversal (eval use)
by mwb613 (Acolyte) on Feb 06, 2013 at 22:35 UTC

    No good reason except that I'm bit robotic in my code sometimes. I'll pull out the "sort" commands.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2016-09-30 07:09 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (562 votes). Check out past polls.