From: oetiker Date: Mon, 13 Oct 2008 22:07:14 +0000 (+0000) Subject: This patch reduces the number of time()/gettimeofday() system calls when X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=commitdiff_plain;h=3c3effad5f54f8c73260068e3ec32c56684243bb;hp=3c3effad5f54f8c73260068e3ec32c56684243bb 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 ---