apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject [PATCH] use buffered io with sdbm
Date Tue, 27 Feb 2007 22:20:46 GMT

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


Mime
View raw message