convert the pending write list to a vector for better performance and less cache thrashing

Former-commit-id: ae33ff3a6e
This commit is contained in:
John Sully committed 2019-06-17 23:00:12 -04:00
1 parent 924509f52f
commit 9725fadaba
4 files changed
+15 -17

No files matched your search

+1 -1
View File
@@ -3806,7 +3806,7 @@ void moduleHandleBlockedClients(int iel) {
AssertCorrectThread(c);
fastlock_lock(&g_pserver->rgthreadvar[c->iel].lockPendingWrite);
listAddNodeHead(g_pserver->rgthreadvar[c->iel].clients_pending_write,c);
g_pserver->rgthreadvar[c->iel].clients_pending_write.push_back(c);
fastlock_unlock(&g_pserver->rgthreadvar[c->iel].lockPendingWrite);
}
}