mirror of
https://github.com/Snapchat/KeyDB.git
synced 2026-11-13 12:22:10 -05:00
convert the pending write list to a vector for better performance and less cache thrashing
Former-commit-id: ae33ff3a6e
This commit is contained in:
1 parent
924509f52f
commit
9725fadaba
4 files changed
+15
-17
No files matched your search
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user