haproxy/contrib
Willy Tarreau 9f66aa9cc4 CONTRIB: halog: avoid calling time/localtime/mktime for each line
The last commit provides time-based filtering. Unfortunately, it wastes
90% of the time calling the expensive time()/localtime()/mktime()
functions.

This patch does 3 things :
  - call time()/localtime() only once to initialize the correct
    struct timeinfo ;

  - call mktime() only when the time has changed regardless of
    the current second.

  - manually add the current second to the cached result.

Doing just this is enough to multiply the parsing speed by 8.
2014-05-23 16:40:25 +02:00
..
base64 [CONTRIB] add base64rev-gen.c that was used to generate the base64rev table. 2010-01-31 19:14:07 +01:00
halog CONTRIB: halog: avoid calling time/localtime/mktime for each line 2014-05-23 16:40:25 +02:00
ip6range CONTRIB: ip6range: add a network IPv6 range to mask converter 2014-03-17 18:06:06 +01:00
iprange MINOR: contrib: make the iprange tool grep for addresses 2012-12-13 00:11:02 +01:00
netsnmp-perl [CONTRIB] Update Cacti Tempates 2010-10-30 19:04:36 +02:00
selinux [CONTRIB] selinux policy for haproxy 2009-03-21 10:15:00 +01:00
systemd MEDIUM: add systemd service 2013-02-13 10:47:59 +01:00
trace MINOR: add a new function call tracer for debugging purposes 2012-05-26 00:12:37 +02:00