preload.state waste resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
preload (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: preload
I think /var/lib/
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)
NonfreeKernelMo
Package: preload 0.6.4-1
ProcEnviron:
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: preload
Uname: Linux 2.6.31-17-generic x86_64