bugSynaptic - Bugs: bug #30755, synaptic slow: description...

 
 

bug #30755: synaptic slow: description search, first install, sub view change

Submitter:  None
Submitted:  Thu 12 Aug 2010 01:21:24 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Aug 2010 05:43:37 PM UTC, comment #1: 

Thanks a lot for your patch.

Could you please redo it with diff -u (or bzr diff) ? Or can you mail me the files that you modified and I will do the diff myself. The changes sound very interessting!

Michael Vogt <mvogt>
Group administrator
Thu 12 Aug 2010 01:21:24 AM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #21472:  pathlong.diff added by mvogt (23KiB - text/plain - patch from Kamil with diff -u (many thanks))
file #21200:  path.diff added by None (14KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mvogt (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-09-16 mvogt Attached File- Added pathlong.diff, #21472
    2010-08-12 None Attached File- Added path.diff, #21200

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code