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

Bug #1063113 reported by Timothy Arceri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-xapian-index
New
Unknown
apt-xapian-index (Ubuntu)
New
Undecided
Unassigned

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.

Changed in apt-xapian-index:
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.