mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
sort batches of writes to reduce fragmentation
This commit is contained in:
@ -14,7 +14,7 @@ void RelayServer::runWriter(ThreadPool<MsgWriter>::Thread &thr) {
|
||||
|
||||
// Prepare messages
|
||||
|
||||
std::deque<EventToWrite> newEvents;
|
||||
std::vector<EventToWrite> newEvents;
|
||||
|
||||
for (auto &newMsg : newMsgs) {
|
||||
if (auto msg = std::get_if<MsgWriter::AddEvent>(&newMsg.msg)) {
|
||||
|
Reference in New Issue
Block a user