From be7d20f0c57cc834e943426090fe2debf76ca98d Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 20 Dec 2024 21:27:48 +0100 Subject: perf(ecs): use hashbrown's HashMap & HashSet Hashbrown's HashMap & HashSet is faster than std's. I guess this is because std (which uses hashbrown) does not enable hashbrown's default-hasher flag and instead uses a slower hasher. --- ecs/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'ecs/Cargo.toml') diff --git a/ecs/Cargo.toml b/ecs/Cargo.toml index 3bf3b19..68d74f9 100644 --- a/ecs/Cargo.toml +++ b/ecs/Cargo.toml @@ -12,6 +12,7 @@ paste = "1.0.14" thiserror = "1.0.49" tracing = { version = "0.1.39", optional = true } linkme = "0.3.29" +hashbrown = "0.15.2" ecs-macros = { path = "../ecs-macros" } util-macros = { path = "../util-macros" } -- cgit v1.2.3-18-g5258