synaptic slow search, package list change, first instalation

Bug #616577 reported by Kamil Lenartowicz
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: synaptic

Synaptic package manager is really slow application,
I wrote path which solves several problems like:
- slow search in descriptions and maintainers
- slow sub view change
- slow first instalation "Reading database..."

I've added:

* background preload after openCache:
    -preload maintainers and descriptions (sort orders on file and offset) (time 900ms; 300ms if not first run)
    -preload /var/lib/dpkg/info/*.list files needed by dpkg (time 10s with nice -19; 300ms if not first run)

    Gain:
        -first search "name and description" (time from 12s to 200ms)
        -first "Reading database...": few times faster

* remove unnecessary refreshView after subview list click
    Gain: click on static subview list loads package list immediately (not after 300ms-400ms)

I did not really test my code (various environments etc).

My changes are in path, I've worked on synaptic 0.63.1ubuntu7 sources.

Revision history for this message
Kamil Lenartowicz (kamil-lenartowicz) wrote :
Revision history for this message
Kamil Lenartowicz (kamil-lenartowicz) wrote :

Some timings:

Without path:
change subview: 410ms
commit changes: first: 15s second: 2.8s
description search: first: 12s second 1.7s

With path:
change subview: 3ms
commit changes: first: 4.4s second: 2.8s
description/maintainer search: first: 200ms second 160ms

tags: added: patch
Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Hello Kamil,
Thank you for submitting this bug and reporting a problem with synaptic. You made this bug report some time ago and Ubuntu has been updated since then.

Could you confirm that this is no longer a problem and that we can close the ticket?
If it is still a problem, are you still interested in finding a solution to this bug?
If you are, could you let us know and run the following (only once):
apport-collect BUGNUMBER
and upload the updated logs and and any other logs that are relevant for this particular issue.

Thank you again for helping make Ubuntu better.
G

Changed in synaptic (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for synaptic (Ubuntu) because there has been no activity for 60 days.]

Changed in synaptic (Ubuntu):
status: Incomplete → Expired
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.