Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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.

CountZero

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


Comment on Re: Optimization Help on Perl Hash Traversal (eval use)
Download Code
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.

    thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-12-26 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls