From 0fce20d8dac9860a4aa59f03627c5d312028e279 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Wed, 1 May 2024 12:00:27 -0600 Subject: [PATCH] More element arena (#11258) Co-Authored-By: Mikayla My Zed was running out with collab + chat + recent projects + two splits on a large monitor Release Notes: - N/A Co-authored-by: Mikayla --- crates/gpui/src/window.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index 4d639b37373d2caeb3d8ee4efff1b3a4fe55019c..4d2c3e15c87d020665002effbb69cfd78062bfc0 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -95,7 +95,8 @@ slotmap::new_key_type! { } thread_local! { - pub(crate) static ELEMENT_ARENA: RefCell = RefCell::new(Arena::new(8 * 1024 * 1024)); + /// 8MB wasn't quite enough... + pub(crate) static ELEMENT_ARENA: RefCell = RefCell::new(Arena::new(32 * 1024 * 1024)); } impl FocusId {