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

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-06-19 23:52 GMT
Find Nodes?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)

    Results (93 votes). Check out past polls.