Store the dpkg available and status files in an SQLite database to improve performance, reduce file size, increase integrity, have better flexibility when searching and simplify updates.
The proof of concept has already started.
http://people.debian.org/~seanius/dpkg-sqlite/
sean finney wrote:
I have checked it out, very nice, besides missing a -ldl flag, everything went
according to plan. The speed is simply amazing, here is a small benchmark I did
on my machine:
omega3:/home/joe/build/dpkg-sqlite# echo 1 > /proc/sys/vm/drop_caches
omega3:/home/joe/build/dpkg-sqlite# time dpkg -S /usr/bin/gcc
gcc: /usr/bin/gcc
real 0m4.778s
user 0m0.252s
sys 0m0.152s
omega3:/home/joe/build/dpkg-sqlite# echo 1 > /proc/sys/vm/drop_caches
omega3:/home/joe/build/dpkg-sqlite# time ./poc /usr/bin/gcc
querying as if listing package /usr/bin/gcc:
querying as if for owner of file /usr/bin/gcc:
gcc: /usr/bin/gcc
real 0m1.306s
user 0m0.240s
sys 0m0.096s
omega3:/home/joe/build/dpkg-sqlite#
The difference is drastic. One of the main concerns now is reliability. Does
anyone here know of any SQLite horror stories they might like to share ?
Tags:
(none)
No attachments.