So I've been looking into overlapped IO for sockets for a server application I'm building, and I keep seeing comments of people saying "never use hEvent
" or "IO completion ports will be faster", etc, but no one ever says WHY not to use hEvent
and no one ever provides any real-world data or numbers on completion ports being faster, or how much faster. hEvent
with WaitForMultipleObjects()
fits better into my application, so if the speed difference is marginal I'm inclined to use that, but I don't want to commit to that without some real data telling me how big of a sacrifice I'm making there. I've googled and googled and googled and can't find any benchmarks or articles or ANYTHING comparing the two strategies aside from a few StackOverflow answers saying "don't use this one" without giving a reason.
Can anyone provide me with some real information or numbers here on the practical, real world difference between using hEvent
and completion ports?