From 32d5bd2701ef8d74f86f2423ac798ed2a116573b Mon Sep 17 00:00:00 2001 From: markxoe Date: Mon, 3 Jun 2024 21:31:35 +0200 Subject: [PATCH] wip: add nl --- src/data/maps/link_map.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/data/maps/link_map.rs b/src/data/maps/link_map.rs index 3f51cb1..09d7a73 100644 --- a/src/data/maps/link_map.rs +++ b/src/data/maps/link_map.rs @@ -39,6 +39,7 @@ impl LinkMap { } links_counter += 1; + if links_counter % shrink_every == 0 { links.shrink_to_fit(); }