I just couldn't leave this one alone. The cataloged_times is just a dictionary 
so there is no real need to use pickle to serialise it. I loaded the file into 
python and created a serialise file using msgpack instead.
This reduced the file size from 3.1MB to 1.7MB. I then changed software center 
to load this file instead of the pickle one bingo! this reduced the load time 
by 1.1 seconds to just 0.1 of a second.

Only thing is the change would also need to be made to the upstream apt-
xapian-index code that actually creates/updates this file, I'm unsure at
this point where this code is located.

-- 
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