mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 16:51:02 +00:00
Use rayon to speed up subscribe message serializing
This commit is contained in:
@@ -49,6 +49,10 @@ where
|
||||
self.add_with(|_| item)
|
||||
}
|
||||
|
||||
pub fn as_slice(&self) -> &[Option<T>] {
|
||||
&self.items
|
||||
}
|
||||
|
||||
pub fn add_with<F>(&mut self, f: F) -> Id
|
||||
where
|
||||
F: FnOnce(Id) -> T,
|
||||
|
||||
Reference in New Issue
Block a user