Comment 2 for bug 534171

Revision history for this message
Chad Miller (cmiller) wrote :

The only change I see that looks significant between the 0.6.1 and 0.6.2 tarballs is the import of "dbus" python module. That would consume memory on first usage, but not on subsequent CouchDatabase object instances.

However, if Gwibber is using DBus already, this would not be a difference between the two versions of desktopcouch, since it's already imported.

My plot above is Resident Memory Size relative to the *number of CouchDatabase instances* (not number of records in a database, as my label implies) appended to a list. References are alive and so no CouchDatabase instances are freed.

>>> l = list()
>>> l.append(CouchDatabase("gwibber_messages", create=True)) # and now check RSS
>>> l.append(CouchDatabase("gwibber_messages", create=True)) # and now check RSS
>>> l.append(CouchDatabase("gwibber_messages", create=True)) # and now check RSS
>>> l.append(CouchDatabase("gwibber_messages", create=True)) # and now check RSS
>>> l.append(CouchDatabase("gwibber_messages", create=True)) # and now check RSS
....