From 5009ba54b2600570c929a1ee14edf6e9b61f0680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 24 Sep 2020 09:05:05 +0200 Subject: [PATCH] MessageQueue: Change default queue size to 4096 KB 1024 KB was low enough that many users seem to hit it, which can lead to the editor freezing. The proper fixed as described in #35653 would be to implement a page allocator to prevent this overflow, but as a stop-gap measure, we can increase the default value to a more lenient 4096 KB which should be high enough for the vast majority of use cases. The default size can be brought down again if/when #35653 is properly fixed, and if it's actually relevant from a memory point of view. --- core/message_queue.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/message_queue.h b/core/message_queue.h index 7d13e26208f2..710a60537195 100644 --- a/core/message_queue.h +++ b/core/message_queue.h @@ -38,8 +38,7 @@ class MessageQueue { _THREAD_SAFE_CLASS_ enum { - - DEFAULT_QUEUE_SIZE_KB = 1024 + DEFAULT_QUEUE_SIZE_KB = 4096 }; enum {