increase rolling slot width to 4M (#16583)

This commit is contained in:
Jeff Washington (jwash) 2021-04-20 21:18:15 -05:00 committed by GitHub
parent bb2b4c7e0b
commit 9852572eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -307,9 +307,9 @@ pub struct RootsTracker {
impl Default for RootsTracker {
fn default() -> Self {
// we expect to keep a rolling set of 400k slots around at a time
// 2M gives us plenty of extra room to handle a width 5x what we should need.
// cost is 2M bits of memory
RootsTracker::new(2097152)
// 4M gives us plenty of extra(?!) room to handle a width 10x what we should need.
// cost is 4M bits of memory, which is .5MB
RootsTracker::new(4194304)
}
}