Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^2: Caching a hash?

by guice (Scribe)
on Mar 10, 2006 at 21:42 UTC ( #535825=note: print w/ replies, xml ) Need Help??

in reply to Re: Caching a hash?
in thread Caching a hash?

I'll check that out. I've gotten in the habit of using variable caching for methods I might repeatably call (ie, db method to return the db object) and use did basic isset() checks; setting the value if false and returning the variable.

That can be useful for methods were I have a rather large return array and want to free up some memory instead of keeping the values stored in a local variable (pretty much what I'm needing and more). Thanks!

And the module part, generally this is true although some stronger modules (especially ones that start playing around with memory and system level stuff) requires compiled code. So I just wanted to make sure I cleared that restriction before I get a slew of mem_cache type modules suggested

-- philip
We put the 'K' in kwality!

Comment on Re^2: Caching a hash?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2014-09-24 05:13 GMT
Find Nodes?
    Voting Booth?

    How do you remember the number of days in each month?

    Results (246 votes), past polls