]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
This patch reduces the number of time()/gettimeofday() system calls when
authorTobias Oetiker <tobi@oetiker.ch>
Mon, 13 Oct 2008 22:07:14 +0000 (22:07 +0000)
committerTobias Oetiker <tobi@oetiker.ch>
Mon, 13 Oct 2008 22:07:14 +0000 (22:07 +0000)
commitf5cf4de85ab2dc5af0f6bb1c1256f6ebe4718676
treed1db16d8a5093716c1f313629e5c6494a675bd48
parentd56091691d0fc003fa30908e846812696939ce44
This patch reduces the number of time()/gettimeofday() system calls when
doing high volume processing.  This enables about 25% speed increase
during journal replay and "BATCH" processing.  (this is a function of
syscall overhead).

 * note when "BATCH" processing or journal replay starts, use that
   timestamp for all commands

 * use the batch start time to detect when we're in batch mode.  no longer
   need a separate boolean.

 * pass the time_t into handle_request

 * pass the time_t through to the commands that need it

-- kevin brintnall

git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1599 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_daemon.c