[Bug 1063113] [NEW] cataloged_times.py creates pickle files that are slow to load on low powered PCs

Timothy Arceri 1063113 at bugs.launchpad.net
Sun Oct 7 05:30:27 UTC 2012


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
Foundations Bugs, which is subscribed to apt-xapian-index in Ubuntu.
https://bugs.launchpad.net/bugs/1063113

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

Status in Apt Xapian Index:
  Unknown
Status in “apt-xapian-index” package in Ubuntu:
  New

Bug description:
  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.

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




More information about the foundations-bugs mailing list