Index: dbm/sdbm/sdbm.c
===================================================================
--- dbm/sdbm/sdbm.c (revision 489681)
+++ dbm/sdbm/sdbm.c (working copy)
@@ -120,7 +120,7 @@
flags &= ~APR_SHARELOCK;
}
- flags |= APR_BINARY | APR_READ;
+ flags |= APR_BINARY | APR_READ | APR_BUFFERED;
/*
* open the files in sequence, and stat the dirfile.
This cuts down on the number of system calls when
doing a full read an sdbm database. mod_mbox does
quite a few of those, and this patch has significantly
improved its performance on mail-archives.apache.org.
--
Joe Schaefer