You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Joe Schaefer <jo...@sunstarsys.com> on 2007/02/27 23:20:46 UTC

[PATCH] use buffered io with sdbm

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


Re: [PATCH] use buffered io with sdbm

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On 2/27/07, Joe Schaefer <jo...@sunstarsys.com> wrote:
> 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.

Committed in r512557.  Thanks!  -- justin