ok, so it seems another big bottleneck in startup is Xapian calls.

Specifically calls to get_mset() these calls take over 4 seconds in
total on my machine.

Most of these calls are made from _blocking_perform_search() in
softwarecenter/db/enquire.py

Again aside from upstream optimizations to Xapian there doesn't appear
to be any easy way around this. The maxitems parameter can be set to 0
to speedup get_mset() but this reduces the accuracy of the
mset.get_matches_estimated() call which it seems the software center
relies on being accurate so I dont think this change can be made.

So with the pickle load time and Xapian calls that I have tracked so far
that adds up to around 25% of the startup time.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/845579

Title:
  software-center terribly slow, ubuntu freezing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/845579/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to