synaptic slow search, package list change, first instalation
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/
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.
tags: | added: patch |
Some timings:
Without path:
change subview: 410ms
commit changes: first: 15s second: 2.8s
description search: first: 12s second 1.7s
With path: maintainer search: first: 200ms second 160ms
change subview: 3ms
commit changes: first: 4.4s second: 2.8s
description/