]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[OPTIM] sepoll: do not re-check whole list upon accepts
authorWilly Tarreau <w@1wt.eu>
Sun, 22 Mar 2009 18:25:46 +0000 (19:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 22 Mar 2009 18:25:46 +0000 (19:25 +0100)
commit573fd806edf41c411945dac32eb541da0dca8f24
treef30cc32e922cd1c23bcbf239aa7629cb80ba132f
parentb00f9c456c0eadd26abbbf4bb0a3276da9f1844e
[OPTIM] sepoll: do not re-check whole list upon accepts

There is already an optimisation in the speculative poller which
causes newly created FDs to be checked immediately after being
created. Unfortunately, this optimisation causes the whole spec
list to be re-checked while we're only interested in the new FDs.

Doing this minor change causes performance gains of up to 6% on
medium-sized objects with a few hundreds concurrent connections.
src/ev_sepoll.c