From 0531f58a5685db91aa5cc43d18fa75ae2242f892 Mon Sep 17 00:00:00 2001
From: Alessandro Mauri <alemauri001@gmail.com>
Date: Thu, 30 Jan 2025 22:27:46 +0100
Subject: [PATCH] less cached elements by default

---
 src/ugui_core.c3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ugui_core.c3 b/src/ugui_core.c3
index 90d0fbe..c330efe 100644
--- a/src/ugui_core.c3
+++ b/src/ugui_core.c3
@@ -57,7 +57,7 @@ struct Elem {
 def IdTree = vtree::VTree(<Id>) @private;
 
 // elements themselves are kept in a cache
-const uint MAX_ELEMENTS = 1024;
+const uint MAX_ELEMENTS = 256;
 def ElemCache = cache::Cache(<Id, Elem, MAX_ELEMENTS>) @private;
 
 def CmdQueue = fifo::Fifo(<Cmd>);