summaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-12-20 21:27:48 +0100
committerHampusM <hampus@hampusmat.com>2024-12-20 21:27:56 +0100
commitbe7d20f0c57cc834e943426090fe2debf76ca98d (patch)
tree8b81d1dd06bc7d486120f993e3e3e70e48cb34c6 /Cargo.lock
parentcd30a25d2a75cadfe990ae6c1ae2eca5d927a8a7 (diff)
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.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock26
1 files changed, 25 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index d8067f0..03d9d89 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,6 +18,12 @@ dependencies = [
]
[[package]]
+name = "allocator-api2"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
+
+[[package]]
name = "anes"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -257,6 +263,7 @@ version = "0.1.0"
dependencies = [
"criterion",
"ecs-macros",
+ "hashbrown 0.15.2",
"linkme",
"paste",
"seq-macro",
@@ -323,6 +330,12 @@ dependencies = [
]
[[package]]
+name = "foldhash"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0d2fde1f7b3d48b8395d5f2de76c18a528bd6a9cdde438df747bfcba3e05d6f"
+
+[[package]]
name = "game-newest"
version = "0.1.0"
dependencies = [
@@ -385,6 +398,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
[[package]]
+name = "hashbrown"
+version = "0.15.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
+dependencies = [
+ "allocator-api2",
+ "equivalent",
+ "foldhash",
+]
+
+[[package]]
name = "hermit-abi"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -412,7 +436,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26"
dependencies = [
"equivalent",
- "hashbrown",
+ "hashbrown 0.14.3",
]
[[package]]