[Twisted-Python] caching of row objects
Glyph Lefkowitz
glyph at twistedmatrix.com
Sun Sep 8 18:32:57 EDT 2002
On Sun, 8 Sep 2002 16:17:50 -0500, "Sean Riley" <sean at twistedmatrix.com> wrote:
> This is pretty easy to do, but I'm not sure of the implications for cleaning
> up RowObjects. Maybe refcounting of rowobjects to remove them from this
> cache? Maybe an explicit "unload" or "unCache" object method on the
> reflector? any ideas?
It sounds like this is a job for weak references. We can use those, now that
we require Python 2.1 at minimum :). Take a look at the docs for the "weakref"
module.
--
| <`'> | Glyph Lefkowitz: Traveling Sorcerer |
| < _/ > | Lead Developer, the Twisted project |
| < ___/ > | http://www.twistedmatrix.com |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20020908/6ae22514/attachment.pgp
More information about the Twisted-Python
mailing list