From 1347bea78e232e5d1ffce11b77e0c3e875ac242d Mon Sep 17 00:00:00 2001 From: CallMeBrado <72538082+CallMeBrado@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:56:39 -0500 Subject: [PATCH] DirectStorage: accelerate zlib checksums with miniz_oxide's SIMD feature A retail title streams thousands of 64 KiB zlib blocks during startup. Enable the existing checksum backend to validate them using SIMD on supported CPUs. Assisted-by: Codex (GPT-6.2 Astra) --- Cargo.lock | 7 +++++++ crates/xcl/Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9fcde4604..324bc0bdf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,6 +112,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" dependencies = [ "adler2", + "simd-adler32", ] [[package]] @@ -234,6 +235,12 @@ version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + [[package]] name = "slice-pool2" version = "0.4.3" diff --git a/crates/xcl/Cargo.toml b/crates/xcl/Cargo.toml index f3f6d604d..c3b23a1b8 100644 --- a/crates/xcl/Cargo.toml +++ b/crates/xcl/Cargo.toml @@ -14,7 +14,7 @@ name = "xcl" path = "src/main.rs" [dependencies] -miniz_oxide = "0.9" +miniz_oxide = { version = "0.9", features = ["simd"] } retour = "0.3" serde = { version = "1", features = ["derive"] } serde_json = "1"