Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You could always write your own serializer for use with Memoize. On the other hand, maybe you should consider how you object is being constructed if you have multiple layers of parameters in your object. I wrote some caching code and what it checked for was the primary key of the object. If there was no primary key, it was a new object. If there was a primary key, it would check the cache and return it if it was cached, otherwise I fetched it from the database. There is no reason for you to verify every single param to determine if you are working with the same object, pick something that should be unique for your object instead identical parameters. In reply to Re: Fastest data structure compare?
by Herkum
|
|