From 7481d9b66b3afd0e207baf5b73da746f37fad67d Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Tue, 17 Aug 2021 12:38:41 -0500 Subject: [PATCH] exhaustively_free_unused_resource uses more threads (#19264) --- runtime/src/bank.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 13c6c8febf..372b717755 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -2457,7 +2457,8 @@ impl Bank { clean.stop(); let mut shrink = Measure::start("shrink"); - self.shrink_all_slots(false, last_full_snapshot_slot); + const IS_STARTUP: bool = true; // this is only called at startup, and we want to use more threads + self.shrink_all_slots(IS_STARTUP, last_full_snapshot_slot); shrink.stop(); info!(