Comment on Lazy RubyComments−crb00212yI would memoize with an alias_method wrapper and let it hit a cache_hash before calling the original function. This is a generic pattern that should work for all immutable functions.http://stackoverflow.com/questions/21790868/simple-aspect-or...
Comments
I would memoize with an alias_method wrapper and let it hit a cache_hash before calling the original function. This is a generic pattern that should work for all immutable functions.
http://stackoverflow.com/questions/21790868/simple-aspect-or...