Public bug reported:

Cataloged_times is simply a Python dictionary object. Other serialisation 
methods are
faster than pickle at handling simple data types like this. On my low powered 
atom Netbook 
this file takes 1.4 seconds to load. When I use the same data with the msgpack 
python module 
it takes only 0.1 seconds. Also the filesize is reduced from 3.1MB to 1.7MB.

This would help with the slow startup times in software-center as it
loads in this pickle file: https://bugs.launchpad.net/ubuntu/+source
/software-center/+bug/845579

My proposal is that the pickle serialisation in cataloged_times.py be replaced 
with the offerings
from the msgpack module. I have submitted a patch upstream.

** Affects: apt-xapian-index
     Importance: Unknown
         Status: Unknown

** Affects: apt-xapian-index (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: Debian Bug tracker #689717
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689717

** Also affects: apt-xapian-index via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=689717
   Importance: Unknown
       Status: Unknown

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

Title:
  cataloged_times.py creates pickle files that are slow to load on low
  powered PCs

To manage notifications about this bug go to:
https://bugs.launchpad.net/apt-xapian-index/+bug/1063113/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to