[leafnode-list] [PATCH] Experimental patch to mmap active file for speed

Matthias Andree ma at dt.e-technik.uni-dortmund.de
Sat Nov 13 03:04:07 CET 2004


Robert Clark <clark at exiter.com> writes:

> I am attaching a quick experiment with mmap'ing the groupinfo file before it
> is processed to try and speed up the loading. On both machines I tested
> this on, this cut about 50% off the delay in posting a new article, which
> is the place where I really notice the delay.

I've cleaned it up, changed the active file format to include a line
with a count (so one pass through the file suffices when that line is
present), simplified getabufferedline a bit and committed it to CVS.

I don't know how long the mmap changes will live though - we'll see how
many portability complaints come in after the next snapshot.

Thank you!

-- 
Matthias Andree



More information about the leafnode-list mailing list