[PATCH] pnp.ids

Pozsár Balázs pozsy at uhulinux.hu
Mon Feb 7 09:30:05 PST 2005


On Mon, Feb 07, 2005 at 11:50:16AM -0500, David Zeuthen wrote:
> Actually, I've been considering giving the pci.ids and usb.ids the same 
> treatment; write a script that converts the files to a table (.h file) 
> and use that for look-up in hald. While doing that we should change the 
> look-up to use a binary search also or whatever to do better than O(n). 
> If someone got a patch for this, I'd be happy to take it :-)

NO NO NO NO NO!!!

Please do not do this. I really think this is a bad idea, duplicating 
a constantly changing database. Why not just read those files on startup 
into a binary tree? Would give the same performance, without just 
another duplication/"fork".


-- 
pozsy
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list