From 68729446d003fbc33c2e6345853de5d61d16a254 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sun, 22 Sep 2024 19:57:13 +0200 Subject: [PATCH] Preallocate capacity --- src/init.luau | 2 +- wally.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.luau b/src/init.luau index c74c71e..ef8c6b5 100644 --- a/src/init.luau +++ b/src/init.luau @@ -938,7 +938,7 @@ local function world_cleanup(world) end end - local new_archetypes = {} + local new_archetypes = table.create(#archetypes) local new_archetype_map = {} for index, archetype in archetypes do diff --git a/wally.toml b/wally.toml index 8a2a999..d2af632 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "ukendio/jecs" -version = "0.3.0-rc.5" +version = "0.3.0-rc.6" registry = "https://github.com/UpliftGames/wally-index" realm = "shared" include = [