]> git.ipfire.org Git - thirdparty/pdns.git/commit
Multiplexer: Take the maximum number of events as a hint 11517/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Apr 2022 09:30:48 +0000 (11:30 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 8 Apr 2022 09:30:48 +0000 (11:30 +0200)
commit7c58a81f724d0d939d53a7f9599bb7db47f7c3a4
tree883c69f57e0d2b41633519b7f9475ffc491bf3b8
parent4450836cca57c55d602296aa64244467a9837ba6
Multiplexer: Take the maximum number of events as a hint

This allows indicating the maximum number of events we want to process
in a single run, which is usually bounded by the number of file descriptors
we are planning on watching.
The default is still 1024 events, but this change makes it possible to
allocate a smaller vector of events to reduce the memory usage when we
know we are going to need to process so many events in a single run.
pdns/devpollmplexer.cc
pdns/epollmplexer.cc
pdns/kqueuemplexer.cc
pdns/mplexer.hh
pdns/pollmplexer.cc
pdns/portsmplexer.cc
pdns/recursordist/rec-main.cc
pdns/test-mplexer.cc