Skip to content
Snippets Groups Projects
Commit e0c4dff3 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

iproto: fix a performance bug (saves up to 10% CPU)

When selecting the next buffer to flush, take into account not
just its size, but how much of it has already been flushed.
This saves a couple syscalls per connection per event loop.
parent 0ed73074
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