diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 11:43:43 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-15 11:43:43 +0100 |
commit | fbcc8ab840aaa212934da0082a039038c8a81e53 (patch) | |
tree | 69b0ce0648d704e43f4e543d6a649e9b1ed8eb20 /LibC/dirent.cpp | |
parent | 29c49356e3229acb740f016d39629e322d31abd1 (diff) | |
download | serenity-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