Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: using ref to hash of hash effectively

by perlfan (Vicar)
on Dec 28, 2020 at 17:55 UTC ( [id://11125884]=note: print w/replies, xml ) Need Help??


in reply to using ref to hash of hash effectively

You may also trade space for complexity, and maybe a few more brain cells, by transforming a cononical hash into data structures that might be more efficient for computing and tracking various things. Although it's sometimes implied, there is no reason you have to have just one hash (or stucture) - the biggest issue there is going to be ensuring all of your structures are synchronized. Again, this is in the event that you find yourself doing mental hoops to iterate over a data structure when it'd be a lot easier to compute or look up what you need after a straightforward transformation.
  • Comment on Re: using ref to hash of hash effectively

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-24 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found