On Thursday 11 May 2006 15:31, [EMAIL PROTECTED] wrote: > Hi, > > I'm currently working on a port of clamav for our embedded firewall > appliance "mGuard". Right now I am trying to implement the database > loading in a way that does not require extra space in the tmp directory > (an extra 10 MB of RAMdisk space to load the database is a problem > on a device with only 64 MB of RAM). So everything is parsed from > the 512 byte blocks read by gzread(), needing only one extra linebuffer > of < 1kB and no unpacked database files in tmp space.
Nice! I always wondered why clamav creates those temp files. That slows down things quite a bit. A bad design. I really like that someone want to improve it. In the longer term: I think virus database should be stored in such a format that it can be just mmap'ed and directly used, without reading it with read() syscalls. This will eliminate yet another mem-to-mem copying. Something like cdb databases of Dan Bernstein: http://cr.yp.to/cdb.html -- vda _______________________________________________ http://lurker.clamav.net/list/clamav-devel.html