[Bug 507438] [NEW] preload.state waste resources

Jérôme jerome.bouat at wanadoo.fr
Thu Jan 14 12:01:49 UTC 2010


Public bug reported:

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 at 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 at j-dt:~/tmp$ du preload.state*
464	preload.state
392	preload.state2
j at 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 at j-dt:~/tmp$ cat preload.state2 | sed 's/file:\/\///' > preload.state3
j at j-dt:~/tmp$ du preload.state*
464	preload.state
392	preload.state2
372	preload.state3
j at 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

** Affects: preload (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
preload.state waste resources
https://bugs.launchpad.net/bugs/507438
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list