INN commit: trunk (3 files)

Russ Allbery Russ_Allbery at isc.org
Tue Jun 7 04:18:22 UTC 2005


    Date: Monday, June 6, 2005 @ 21:18:20
  Author: eagle
Revision: 7270

Calling fseeko or ftello does fflush, at least on Linux, which meant that
we were flushing the history file after every write and not gaining the
advantage of stdio buffering.  Stop using fseeko/ftello in favor of using
an internally maintained offset.

This breaks multiple processes writing to the history file at the same
time, but in practice we don't support that right now anyway.  We save a
significant number of write and seek syscalls this way.

Patch from Chris Caputo.

Modified:
  trunk/CONTRIBUTORS
  trunk/history/hisv6/hisv6-private.h
  trunk/history/hisv6/hisv6.c

-------------------------------+
 CONTRIBUTORS                  |    3 +-
 history/hisv6/hisv6-private.h |    1 
 history/hisv6/hisv6.c         |   48 +++++++++++++++++++++++++---------------
 3 files changed, 34 insertions(+), 18 deletions(-)


More information about the inn-committers mailing list