From 920120bbcec9f91df3336f62970b3e010a4fa6c2 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Thu, 6 Mar 2025 16:18:32 +0100 Subject: reduced memory churn using fixed_xxx containers (#236) * Added EASTL to help with eliminating memory allocations * Applied EASTL to eliminate memory allocations, primarily by using `fixed_vector` et al to use stack allocations / inline struct allocations Reduces memory events in traces by close to a factor of 10 in test scenario (starting editor for project F) --- xmake.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake.lua') diff --git a/xmake.lua b/xmake.lua index c49a71901..103ca6703 100644 --- a/xmake.lua +++ b/xmake.lua @@ -9,6 +9,7 @@ add_requires( "vcpkg::curl", "vcpkg::cxxopts", "vcpkg::doctest", + "vcpkg::eastl", "vcpkg::fmt", "vcpkg::gsl-lite", "vcpkg::http-parser", @@ -24,6 +25,8 @@ add_requires( "vcpkg::zlib" ) +add_defines("EASTL_STD_ITERATOR_CATEGORY_ENABLED") + set_policy("build.ccache", false) if is_plat("windows") then -- cgit v1.2.3