Too much memory consumption.

Bug #617505 reported by Thibault Févry
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
GMail Notifier
Confirmed
Undecided
Unassigned

Bug Description

 I actually think that gm-notify.py uses too much memory, actually it uses 20.4 Mio, when Pigdin uses 20.8 Mio ( And Pigdin is much, much, much more complex.) and Transmission 14 Mio...

 I'm tryng to do what I can to make some patches to reduce that.

Revision history for this message
Thibault Févry (thibaultfevry) wrote :

Reduce gm_notify_keyring.py memory consumption by 3Mb.

=== modified file 'gm_notify_keyring.py'
--- gm_notify_keyring.py 2010-05-05 17:31:35 +0000
+++ gm_notify_keyring.py 2010-08-13 17:42:25 +0000
@@ -1,9 +1,7 @@
 __version__ = "$Revision: 14294 $"

-import gtk # ensure that the application name is correctly set
 import gnomekeyring as gkey

 class Keyring(object):
     def __init__(self, name, server, protocol):
         self._name = name

Removed gtk, as it used 3MB of Memory.

[Guppy :

 Before change:

thibault@thibault-desktop:~/Code/gm-notify$ python gm_notify_keyring.py
Partition of a set of 48850 objects. Total size = 6850712 bytes.
 Index Count % Size % Cumulative % Kind (class / dict of class)
     0 20978 43 1527456 22 1527456 22 str
     1 7644 16 621976 9 2149432 31 tuple
     2 554 1 602480 9 2751912 40 dict of type
     3 96 0 601344 9 3353256 49 dict of module
     4 574 1 512200 7 3865456 56 type
     5 578 1 498224 7 4363680 64 dict (no owner)
     6 267 1 441864 6 4805544 70 dict of gobject.GObjectMeta
     7 4520 9 325440 5 5130984 75 __builtin__.method_descriptor
     8 267 1 232856 3 5363840 78 gobject.GObjectMeta
     9 1807 4 216840 3 5580680 81 types.CodeType
<327 more rows. Type e.g. '_.more' to view.>

Guppy, after change :

thibault@thibault-desktop:~/Code/gm-notify$ python gm_notify_keyring.py
Partition of a set of 29379 objects. Total size = 3805888 bytes.
 Index Count % Size % Cumulative % Kind (class / dict of class)
     0 13809 47 1107680 29 1107680 29 str
     1 6373 22 518888 14 1626568 43 tuple
     2 356 1 352352 9 1978920 52 dict (no owner)
     3 83 0 297416 8 2276336 60 dict of module
     4 226 1 223408 6 2499744 66 dict of type
     5 246 1 218696 6 2718440 71 type
     6 1788 6 214560 6 2933000 77 types.CodeType
     7 1700 6 204000 5 3137000 82 function
     8 137 0 152024 4 3289024 86 dict of class
     9 1126 4 90080 2 3379104 89 __builtin__.wrapper_descriptor
<92 more rows. Type e.g. '_.more' to view.>

 Hope it helps...

Changed in gm-notify:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.