Commit 825f65d2 authored by antirez's avatar antirez
Browse files

Reverse list of clients with pending writes.

May potentially improve locality... not exactly clear if this makes a
difference or not. But for sure is harmless.
parent 063ecbd5
...@@ -177,7 +177,7 @@ int prepareClientToWrite(client *c) { ...@@ -177,7 +177,7 @@ int prepareClientToWrite(client *c) {
* a system call. We'll only really install the write handler if * a system call. We'll only really install the write handler if
* we'll not be able to write the whole reply at once. */ * we'll not be able to write the whole reply at once. */
c->flags |= CLIENT_PENDING_WRITE; c->flags |= CLIENT_PENDING_WRITE;
listAddNodeTail(server.clients_pending_write,c); listAddNodeHead(server.clients_pending_write,c);
} }
/* Authorize the caller to queue in the output buffer of this client. */ /* Authorize the caller to queue in the output buffer of this client. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment