]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] changed TV_ETERNITY to ~0 instead of 0
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Apr 2007 20:40:08 +0000 (22:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Apr 2007 11:44:24 +0000 (13:44 +0200)
commita6a6a93e5609e7aaab31af58aaada2221ef78ec4
treea210d0419430b467749ebc333277cc245e41ac88
parent96bcfd75aad6f410d7c8c0311d76799cf1ad87a5
[MAJOR] changed TV_ETERNITY to ~0 instead of 0

The fact that TV_ETERNITY was 0 was very awkward because it
required that comparison functions handled the special case.
Now it is ~0 and all comparisons are performed on unsigned
values, so that it is naturally greater than any other value.

A performance gain of about 2-5% has been noticed.
include/common/time.h
src/proto_http.c
src/task.c
src/time.c