[Baypiggies] identity cache / flywheel design pattern

Alex Martelli aleax at google.com
Tue Aug 5 02:17:43 CEST 2008


On Mon, Aug 4, 2008 at 3:03 PM, Jeff Younker <jeff at drinktomi.com> wrote:
> JJ writes:
>
>> Bingo.  Right you are!  It makes the identity_cache completely
>> unnecessary.
>
> Assuming that you are caching strings and not some other data
> structure.

Also, by using an explicit dict as a cache you potentially gain
control over cache-purging behavior (when memory gets low).

Alex


More information about the Baypiggies mailing list