Pre-initialize global rayon threadpool (#41226)
We only use it a handful of times and the default amount of threads (logical cpu core number) its spawns is overkill for this. This also gives the threads names oppose to being labeled `<unknown>` Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -2291,7 +2291,13 @@ impl BufferSnapshot {
|
||||
insertion_cursor.prev();
|
||||
}
|
||||
let insertion = insertion_cursor.item().expect("invalid insertion");
|
||||
assert_eq!(insertion.timestamp, anchor.timestamp, "invalid insertion");
|
||||
assert_eq!(
|
||||
insertion.timestamp,
|
||||
anchor.timestamp,
|
||||
"invalid insertion for buffer {} with anchor {:?}",
|
||||
self.remote_id(),
|
||||
anchor
|
||||
);
|
||||
|
||||
fragment_cursor.seek_forward(&Some(&insertion.fragment_id), Bias::Left);
|
||||
let fragment = fragment_cursor.item().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user