Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: How to access a static hash.

by Sidhekin (Priest)
on Mar 17, 2007 at 18:04 UTC ( #605290=note: print w/replies, xml ) Need Help??


in reply to How to access a static hash.

          Rate   hash    ref
hash   11956/s     --   -73%
ref    43773/s   266%     --

You are misreading the results. That says using ref is faster by 266%, not slower.

Update: ... or perhaps you have just forgotten how you named your two codes. "hash" and "ref"?! They are both using hashrefs!

The one with the pre-created hashref is the faster one though. Just as common wisdom would have it.

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2018-09-20 11:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (174 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!