[PATCH] pci.id performance patch

Kay Sievers kay.sievers at vrfy.org
Fri Oct 13 03:35:21 PDT 2006


On Fri, 2006-10-13 at 12:10 +0200, Danny Kukawka wrote:
> On Thursday 12 October 2006 18:23, Artem Kachitchkine wrote:
> > FWIW, if we want HAL to run on embedded/limited resource platforms, we
> > should probably invest time in making it more modular and customizable.
> > 600KB is really nothing on a regular PC, 
> 
> And on a embedded plattform you don't have/should have such a big pci.id file. 
> Such machines have a limited number of known devices and should also use a 
> pci.id file with limited information. 

That's true for pci, but you never know what usb device will show up on
a small device, and that's the same problem.

Why not compile it into a simple indexed berkeley db file. That's how
every mailserver works with huge alias tables. That way you don't need
to allocate any memory, have fast access and efficient lookup.

Kay



More information about the hal mailing list