mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-10-30 23:46:28 +00:00 
			
		
		
		
	Reduce union impact in merging
This commit is contained in:
		| @@ -235,8 +235,12 @@ fn merge_cbo_bitmaps( | ||||
|         (Some(_current), None, None) => Ok(Operation::Ignore), // but it's strange | ||||
|         (Some(current), None, Some(add)) => Ok(Operation::Write(current | add)), | ||||
|         (Some(current), Some(del), add) => { | ||||
|             debug_assert!( | ||||
|                 del.is_subset(¤t), | ||||
|                 "del is not a subset of current, which must be impossible." | ||||
|             ); | ||||
|             let output = match add { | ||||
|                 Some(add) => (¤t - del) | add, | ||||
|                 Some(add) => (¤t - (&del - &add)) | (add - del), | ||||
|                 None => ¤t - del, | ||||
|             }; | ||||
|             if output.is_empty() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user