From 59bc7e67e0e406576c0d1e670815253892a891bc Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 17 Oct 2022 16:54:04 +0300 Subject: [PATCH] Use an optimized version of amplify_num. Speeds up layer_map::search somewhat. I also opened a PR in the upstream rust-amplify repository with these changes, see https://github.com/rust-amplify/rust-amplify/pull/148. We can switch back to upstream version when that's merged. --- Cargo.lock | 3 +-- pageserver/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d02ec1f5a1..657baf5d80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,8 +40,7 @@ dependencies = [ [[package]] name = "amplify_num" version = "0.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f27d3d00d3d115395a7a8a4dc045feb7aa82b641e485f7e15f4e67ac16f4f56d" +source = "git+https://github.com/hlinnaka/rust-amplify.git?branch=unsigned-int-perf#bd49b737c2e6e623ab8e9ba5ceaed5712d3a3940" [[package]] name = "android_system_properties" diff --git a/pageserver/Cargo.toml b/pageserver/Cargo.toml index 75aa6e93eb..2139e24ee2 100644 --- a/pageserver/Cargo.toml +++ b/pageserver/Cargo.toml @@ -56,7 +56,7 @@ fail = "0.5.0" git-version = "0.3.5" rstar = "0.9.3" num-traits = "0.2.15" -amplify_num = "0.4.1" +amplify_num = { git = "https://github.com/hlinnaka/rust-amplify.git", branch = "unsigned-int-perf" } pageserver_api = { path = "../libs/pageserver_api" } postgres_ffi = { path = "../libs/postgres_ffi" }