Hi,
attached is a reduced test case for the activity startup slowness.
Summary of the issues:
1 import gtk
2 import dbus.service
3 construct PresenceService
Each of these takes around 1 second. The total activity startup time is
around 4 seconds.
I couldn't actually test 3 on the olpc, isolated from the sugar
activity, because the images miss vte.
I'll investigate further... but if someone has ideas...
Marco
import sys
import time
t = time.time()
import gtk
new_t = time.time()
print 'import gtk: %f' % (new_t - t)
t = new_t
import dbus
t = time.time()
import dbus.service
new_t = time.time()
print 'import dbus.service: %f' % (new_t -t)
t = new_t
from sugar.presence.PresenceService import PresenceService
try:
ps = PresenceService()
except:
print 'Cannot test presence service: run the script from a terminal inside sugar'
sys.exit(0)
new_t = time.time()
print 'ps = PresenceService(): %f' % (new_t -t)
t = new_t
_______________________________________________
Sugar mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/sugar