Skip to content
Snippets Groups Projects
Commit 124709da authored by deuce's avatar deuce
Browse files

Massively lower CPU utilization by avoiding a select() and recv() call for

every byte.  Instead, read as much as possible (up to 64k currently) in a
single recv() and only calling select() to wait for more data.

When uploading /dev/zero via localhost, CPU utilization has gome from 40%
after the last change to 1.2% after this one.

Not yet tested on Win32.
parent e8351ed3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment