CPU high load, 90-100%
Bug description
Right after start, gajim eats almost whole computing power (CPU).
Steps to reproduce
Just fire up gajim. (0.13.4-2) and latest gajim-nightly 20101022-1)
Software versions
OS version: Debian amd64 sid/squeeze
GTK version:
I am not sure here. This one you want? libgtk2.0-0: Installed: 2.21.5-1
PyGTK version: python-gtk2: Installed: 2.17.0-4
ipython "final" output after "run -p gajim.py":
Ordered by: internal time
ncalls tottime percall cumtime percall filename:lineno(function)
1 11.321 11.321 49.865 49.865 {gtk._gtk.main}
277069 5.252 0.000 5.252 0.000 {method 'connect' of '_socket.socket' objects}
277062 3.505 0.000 11.575 0.000 proxy65_manager.py:443(do_connect)
24 2.443 0.102 2.443 0.102 {method 'commit' of 'sqlite3.Connection' objects}
277061 2.029 0.000 18.641 0.000 proxy65_manager.py:391(pollout)
285174 1.895 0.000 1.895 0.000 __init__.py:1230(getEffectiveLevel)
277463 1.692 0.000 35.063 0.000 idlequeue.py:385(_process_events)
277463 1.582 0.000 36.645 0.000 idlequeue.py:526(_process_events)
277383 1.424 0.000 5.046 0.000 idlequeue.py:272(remove_timeout)
55236/19128 1.221 0.000 2.368 0.000 pprint.py:247(_safe_repr)
277069 1.014 0.000 6.266 0.000 \<string>:1(connect)
285174 0.964 0.000 2.859 0.000 __init__.py:1244(isEnabledFor)
282616 0.883 0.000 3.707 0.000 __init__.py:1046(info)
277078 0.861 0.000 1.529 0.000 \<string>:1(setblocking)
277078 0.669 0.000 0.669 0.000 {method 'setblocking' of '_socket.socket' objects}
82862 0.661 0.000 1.646 0.000 contacts.py:133(get_shown_groups)
438977 0.652 0.000 0.652 0.000 {method 'get' of 'dict' objects}
593 0.605 0.001 2.982 0.005 contacts.py:352(get_nb_online_total_contacts)
3 0.444 0.148 0.444 0.148 {method 'do_handshake' of 'OpenSSL.SSL.Connection' objects}
7910 0.442 0.000 3.181 0.000 roster_window.py:1523(_visible_func)
5736 0.408 0.000 1.056 0.000 roster_window.py:1607(_compareIters)
106130 0.359 0.000 0.858 0.000 contacts.py:306(get_contacts)
49222 0.356 0.000 0.356 0.000 contacts.py:621(_get_metacontacts_tag)
12691/791 0.351 0.000 3.016 0.004 pprint.py:129(_format)
106130 0.341 0.000 0.499 0.000 contacts.py:467(get_contacts)
218929 0.287 0.000 0.287 0.000 {method 'write' of 'cStringIO.StringO' objects}
47379 0.286 0.000 0.906 0.000 roster_window.py:1496(contact_has_pending_roster_events)
83347 0.283 0.000 0.283 0.000 contacts.py:170(is_groupchat)
4 0.276 0.069 0.276 0.069 {built-in method search}
138529 0.275 0.000 0.275 0.000 proxy65_manager.py:162(_on_connect_failure)
108540 0.258 0.000 0.258 0.000 gettext.py:217(ugettext)
86729 0.249 0.000 0.397 0.000 contacts.py:176(is_transport)
33545 0.243 0.000 0.243 0.000 {method 'set_property' of 'gobject.GObject' objects}
137197 0.233 0.000 0.233 0.000 {method 'find' of 'unicode' objects}
49684 0.228 0.000 0.710 0.000 contacts.py:343(get_contact_with_highest_priority)
49390 0.224 0.000 0.368 0.000 contacts.py:391(__getattr__)
190760 0.222 0.000 0.222 0.000 {method 'isalpha' of 'str' objects}
50903 0.210 0.000 0.562 0.000 {method 'decode' of 'str' objects}
51011 0.206 0.000 0.353 0.000 utf_8.py:15(decode)
47342 0.183 0.000 1.089 0.000 roster_window.py:1510(contact_is_visible)
124730 0.182 0.000 0.182 0.000 {issubclass}
49921 0.170 0.000 0.275 0.000 events.py:322(get_nb_roster_events)
1689 0.165 0.000 0.757 0.000 idna.py:14(nameprep)
83042 0.164 0.000 0.189 0.000 contacts.py:162(is_observer)
43077 0.156 0.000 0.519 0.000 contacts.py:675(has_brother)
5 0.155 0.031 0.155 0.031 {posix.fsync}
56795 0.153 0.000 0.292 0.000 contacts.py:312(iter_contacts)
8 0.151 0.019 0.151 0.019 {_socket.getaddrinfo}
51011 0.147 0.000 0.147 0.000 {_codecs.utf_8_decode}