[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tdpkg cache wrapper to dpkg

On Mon, Mar 15, 2010 at 10:55:19PM +0100, Luca Bruno wrote:
> Hello,
> it's since 2007 that cache for dpkg has been proposed but maintainers never
> replied. For this reason I've written a shared library libtdpkg.so to wrap
> open/fstat/rename/unlink calls from dpkg for .list files in order to cache the contents of those
> files. The result is quite impressive on how it boosts up cold startup of
> dpkg (from 14s to 2-3s here using tokyocabinet).
> Here's the homepage for reference: http://lethalman.hostei.com/tdpkg.html
> It's robust enough to not fuck up /var/lib/dpkg/info, the first time it
> should be run as root in order to create the cache in
> /var/lib/dpkg/info/tdpkg.cache.
> I'd like to hear your comments about any possibility to enhance the cache
> concept inside dpkg.

You should try the last version of dpkg in experimental, which improved
the way the .list files are read. (Also note this could be (slightly)
improved further).


Reply to: