preload.state waste resources

Bug #507438 reported by Jérôme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
preload (Ubuntu)
New
Undecided
Unassigned
Nominated for Lucid by Jérôme

Bug Description

Binary package hint: preload

I think /var/lib/preload/preload.state could be smaller. Next it would make the preload start quicker and spare the disk.

Then end user hasn't to read the content of the preload.state file and thus preload could use codes instead of long names.

For example I just replaced long names with 1 single letter:
--------------
j@j-dt:~/tmp$ cat preload.state | sed 's/^MARKOV/K/' | sed 's/^EXEMAP/X/' | sed 's/^EXE/E/' | sed 's/^MAP/M/' > preload.state2
j@j-dt:~/tmp$ du preload.state*
464 preload.state
392 preload.state2
j@j-dt:~/tmp$
--------------

It saves 16% of the file size and thus it would speed-up the startup of preload as well.

Removing all the "file://" prefix (since all MAP or EXE entries are file paths on my host)
will save up to 20% of the original file size:
--------------
j@j-dt:~/tmp$ cat preload.state2 | sed 's/file:\/\///' > preload.state3
j@j-dt:~/tmp$ du preload.state*
464 preload.state
392 preload.state2
372 preload.state3
j@j-dt:~/tmp$
--------------

ProblemType: Bug
Architecture: amd64
Date: Thu Jan 14 12:45:29 2010
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
NonfreeKernelModules: nvidia
Package: preload 0.6.4-1
ProcEnviron:
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-17.54-generic
SourcePackage: preload
Uname: Linux 2.6.31-17-generic x86_64

Tags: apport-bug
Revision history for this message
Jérôme (jerome-bouat) wrote :
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.