Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: using ref to hash of hash effectively

by perlfan (Vicar)
on Dec 28, 2020 at 17:55 UTC ( #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
Node Status?
node history
Node Type: note [id://11125884]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2021-04-11 11:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?