Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Just another Perl shrine
 
PerlMonks  

Re^3: Populating a hash

by ww (Chancellor)
on Mar 11, 2012 at 16:19 UTC ( #958969=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Populating a hash
in thread Populating a hash

Anytime you have to preface a desired result with "hopefully," you have a wish, not a plan.

Some suggestions for alternate coding are surely forthcoming ... but my suggestion is "benchmark;" don't just hope, know. Fewer lines does emphatically NOT  eq "faster" code or "lower cpu utilization." There's so much going on behind the green curtain (cf Wizard of Oz) that benchmarking or intimate familiarity with perlguts (which labels itself only as an "introduction" to the Perl API) and the deeper reaches of Perl wisdom and C will you be able to confidently predict any particular case.

And not just BTW, it's my suspicion that Perl will usually do a better job of optomizing-away bits of my code than I will.


Comment on Re^3: Populating a hash
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2013-06-19 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (636 votes), past polls