[PATCH][RFC] cache generation + separate FDI parser process
Sergey Lapin
slapinid at gmail.com
Tue Jan 9 05:20:01 PST 2007
Hi!
Attached is a patch which provides these improvements:
- Separates XML parsing from main running process thus reducing memory
fragmentation and consumption.
- maintains binary cache which is mmapped for reading thus not using
heap for that, so it uses mapped memory which is freed on demand which
is good for small-memory embedded devices.
- makes hald smaller due to fact that bunch of rarely used code is out
in separate process.
so you get /usr/sbin/hald-cache which generates cache at /var/run/hald
(for example) which is then used by hald, so it must exist prior to
running hald.
Debug scripts are not changed, they need to be added running of that binary.
It was a lot of work and it could not be done without Mikhail
Kshevetskiy who did great job of fixing and rewriting lots of crappy
code when my head was seem to blow with that a bit unnecessary
complicated parts of code, so we made it far more simpler and solid.
Hope that will be useful.
Possible TODO:
move hald-cache-test to noinst
provide check for cache to be consistent with FDI files (newer).
S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fdi_cache.diff
Type: text/x-patch
Size: 51289 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070109/b447ee71/fdi_cache-0001.bin
More information about the hal
mailing list