AcctIdx: share bucket map size for perf (#21935)
This commit is contained in:
committed by
GitHub
parent
ba777f4f56
commit
6374995522
@@ -170,10 +170,9 @@ impl BucketMapHolderStats {
|
||||
let disk = storage.disk.as_ref();
|
||||
let disk_per_bucket_counts = disk
|
||||
.map(|disk| {
|
||||
disk.stats
|
||||
.per_bucket_count
|
||||
.iter()
|
||||
.map(|count| count.load(Ordering::Relaxed) as usize)
|
||||
(0..self.bins)
|
||||
.into_iter()
|
||||
.map(|i| disk.get_bucket_from_index(i as usize).bucket_len() as usize)
|
||||
.collect::<Vec<_>>()
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
Reference in New Issue
Block a user