Hacker News new | ask | show | jobs
by prodigal_erik 5797 days ago
Writing the "which fds are ready" check twice would be crazy, if neither version were markedly more efficient than the other. Optimization is the only reason to make this particular design decision, and measurement is definitely the right way to go about it.