Re: Ideas for speeding up dpkg
Florian Weimer <firstname.lastname@example.org> writes:
> * Jonathan Bastien-Filiatrault:
>> The other day, while dpkg was running, I was wondering if it could be
>> sped up by using a database backend instead of flat files. I was
>> thinking it would be possible to graft sqlite to dpkg and eliminate the
>> current file-counting ("Reading database ...") bottleneck in filesdb.c.
> Do you use ext2 or ext3? Sorting file access by inode number might
> help quite a bit (you can get the inode number without touching the
> file using a Linux readdir extension).
Or use ONE flat file instead of a per package file.