Preallocate capacity

This commit is contained in:
Ukendio 2024-09-22 19:57:13 +02:00
parent fbbb1de1df
commit 68729446d0
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 = [