From 73a6e326ce3efea02ab34c9d69da00198d8e1047 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 21 Apr 2022 22:59:39 +0200 Subject: [PATCH] update to upstream --- .gitignore | 4 +++- Cargo.toml | 1 + src/entity.rs | 3 +-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index a866814..595d1dd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,6 @@ bin/ pkg/ wasm-pack.log out.dem -test_data/* \ No newline at end of file +test_data/* +flamegraph.svg +perf.data* \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 96fdbf1..07a4d6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,6 +41,7 @@ pretty_assertions = "1.2.1" md5 = "0.7.0" [profile.release] +lto = true [profile.dev.package."*"] opt-level = 3 diff --git a/src/entity.rs b/src/entity.rs index a8d4177..a22d2a4 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -78,7 +78,6 @@ impl ActiveEntities { state.instance_baselines[0] .keys() .chain(state.instance_baselines[1].keys()) - .copied() .collect() } @@ -113,7 +112,7 @@ impl ActiveEntities { ), ]; for entity in self.entities.values_mut() { - if state.instance_baselines[0].contains_key(&entity.entity_index) { + if state.instance_baselines[0].contains(entity.entity_index) { entity.update_type = UpdateType::Preserve; } else { entity.update_type = UpdateType::Enter;