From e0b4d78c8f7ac70479e6e43e20418838e43ff373 Mon Sep 17 00:00:00 2001 From: Mikhail Atuchin Date: Tue, 23 Jan 2024 19:24:51 +0700 Subject: [PATCH] Fix excessive memory usage for Rust 1.75 https://github.com/rust-lang/rust/issues/120091 --- src/blocker.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blocker.rs b/src/blocker.rs index e69c0583..78d7edd1 100644 --- a/src/blocker.rs +++ b/src/blocker.rs @@ -800,6 +800,7 @@ impl NetworkFilterList { }; optimized.append(&mut unoptimizable); + optimized.shrink_to_fit(); optimized_map.insert(key, optimized); }