Monday, February 19, 2007

Simple But Powerful Ruby Memoization

The simple technique: using a Hash with a default block.

The improvement: constraining the size of the cache.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.