Improve sync performance with more caching and wrapping things in Arcs to avoid copies
This commit is contained in:
		
							parent
							
								
									7c6d25dcd1
								
							
						
					
					
						commit
						be877ef719
					
				
					 12 changed files with 112 additions and 98 deletions
				
			
		|  | @ -1,12 +1,12 @@ | |||
| use std::collections::HashSet; | ||||
| use std::{collections::HashSet, sync::Arc}; | ||||
| 
 | ||||
| use super::CompressedStateEvent; | ||||
| use crate::Result; | ||||
| 
 | ||||
| pub struct StateDiff { | ||||
|     pub parent: Option<u64>, | ||||
|     pub added: HashSet<CompressedStateEvent>, | ||||
|     pub removed: HashSet<CompressedStateEvent>, | ||||
|     pub added: Arc<HashSet<CompressedStateEvent>>, | ||||
|     pub removed: Arc<HashSet<CompressedStateEvent>>, | ||||
| } | ||||
| 
 | ||||
| pub trait Data: Send + Sync { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timo Kösters
						Timo Kösters