summaryrefslogtreecommitdiff
path: root/LibC/dirent.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-15 11:43:43 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-15 11:43:43 +0100
commitfbcc8ab840aaa212934da0082a039038c8a81e53 (patch)
tree69b0ce0648d704e43f4e543d6a649e9b1ed8eb20 /LibC/dirent.cpp
parent29c49356e3229acb740f016d39629e322d31abd1 (diff)
downloadserenity-fbcc8ab840aaa212934da0082a039038c8a81e53.zip
WindowServer: Slurp all available client messages when checking them.
We were reading one client message per client per event loop iteration. That was not very snappy. Make the sockets non-blocking and read() until there are no messages left. It would be even better to make as few calls to read() as possible to reduce context switching, but this is already a huge improvement.
Diffstat (limited to 'LibC/dirent.cpp')
0 files changed, 0 insertions, 0 deletions