[storm] why weakrefdict for cache?
Christopher Armstrong
radix at twistedmatrix.com
Fri Aug 31 14:01:55 BST 2007
On 8/31/07, Christopher Armstrong <radix at twistedmatrix.com> wrote:
> To be extra-clear: this patch will cause many Storm applications severe
> performance problems.
>
I forgot to point out another problem. Clearing the cache like that on
invalidation will break the second major feature of the cache: since the
object will no longer be in the cache even if someone else is holding a
reference to it, if that object is loaded from the database in the next
transaction there will be two copies of it in memory. Storm tries very hard
to prevent this.
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/storm/attachments/20070831/b7df6152/attachment.htm
More information about the storm
mailing list