On Saturday 03 December 2005 11:15, Greg Hudson wrote:
> On Sat, 2005-12-03 at 03:58 -0500, John Szakmeister wrote:
> > I'm wondering if we even need buffering when writing the rev file? It
> > appeared that everything was being processed sequentially, so there's no
> > real benefit to the buffering.
>
> The question is not whether we skip around, but whether we write in
> small chunks. The point of buffering is to convert many small writes as
> seen by the application code into a few large writes as seen by the OS,
> because (at least on Unix) system calls are expensive enough to drag
> down your performance.
Ah. I saw "buffered" and immediately thought of buffering to support better
random access (which I realize is generally done by the OS). But APR is
implementing something similar to fread/fwrite in stdio. Thanks for the
explanation Greg.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 4 02:22:07 2005