exhaustively_free_unused_resource uses more threads (#19264)

This commit is contained in:
Jeff Washington (jwash) 2021-08-17 12:38:41 -05:00 committed by GitHub
parent 7a8807b8bb
commit 7481d9b66b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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!(