]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] convert all expiration timers from timeval to ticks
authorWilly Tarreau <w@1wt.eu>
Sun, 6 Jul 2008 22:09:58 +0000 (00:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 6 Jul 2008 22:09:58 +0000 (00:09 +0200)
commit0c303eec87cc8a5ab4cb7d6aa2dcb2706bf76774
tree2def17efbacff7f38c45226ccdde810b61c21d9b
parent75875a7c8c7348e90e373c007bafdedcc6253ab4
[MAJOR] convert all expiration timers from timeval to ticks

This is the first attempt at moving all internal parts from
using struct timeval to integer ticks. Those provides simpler
and faster code due to simplified operations, and this change
also saved about 64 bytes per session.

A new header file has been added : include/common/ticks.h.

It is possible that some functions should finally not be inlined
because they're used quite a lot (eg: tick_first, tick_add_ifset
and tick_is_expired). More measurements are required in order to
decide whether this is interesting or not.

Some function and variable names are still subject to change for
a better overall logics.
32 files changed:
include/common/appsession.h
include/common/ticks.h [new file with mode: 0644]
include/proto/buffers.h
include/proto/proto_http.h
include/proto/proto_uxst.h
include/proto/proxy.h
include/proto/task.h
include/types/buffers.h
include/types/fd.h
include/types/global.h
include/types/proto_http.h
include/types/protocols.h
include/types/proxy.h
include/types/task.h
src/appsession.c
src/backend.c
src/cfgparse.c
src/checks.c
src/client.c
src/dumpstats.c
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c
src/haproxy.c
src/proto_http.c
src/proto_uxst.c
src/proxy.c
src/senddata.c
src/stream_sock.c
src/task.c