]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] fd: merge fd_list into fdtab
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Oct 2009 20:54:17 +0000 (22:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Oct 2009 06:20:26 +0000 (08:20 +0200)
commitb48b323223da50c1222f8fddcb9b296ca28c6601
treeeca46833a3abc3b3af8d06989989f855f1f5c329
parent8d5d77efc3aa369df73223c778a0ecd637eafdbf
[MEDIUM] fd: merge fd_list into fdtab

The fd_list[] used by sepoll was indexed on the fd number and was only
used to store the equivalent of an integer. Changing it to be merged
with fdtab reduces the number of pointer computations, the code size
and some initialization steps. It does not harm other pollers much
either, as only one integer was added to the fdtab array.
include/types/fd.h
src/ev_sepoll.c