[Xapian-discuss] Mime2Text library, derived from omindex
Liam
xapian at networkimprov.net
Wed Nov 23 06:26:52 GMT 2011
On Wed, Nov 9, 2011 at 12:22 PM, Liam <xapian at networkimprov.net> wrote:
> Continuing the "omindex library or daemon" thread in a new vein...
>
load_file() in omega/loadfile.cc (part of the pending Mime2Text lib) calls
posix_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED);
once, before closing the fd. In order to minimally impact the filesystem
cache, I suspect it should call that after each read()?
Also, the read buffer is only 4KB. It might be considerably more efficient
if sized to the filesystem block size?
Liam
More information about the Xapian-discuss
mailing list