Reduce merge allocations

This commit is contained in:
ManyTheFish 2024-12-10 11:00:20 +01:00
parent 07f42e8057
commit 2fb065b9fb

View File

@ -240,7 +240,7 @@ fn merge_cbo_bitmaps(
"del is not a subset of current, which must be impossible." "del is not a subset of current, which must be impossible."
); );
let output = match add { let output = match add {
Some(add) => (&current - (&del - &add)) | (add - del), Some(add) => (&current - (del - &add)) | add,
None => &current - del, None => &current - del,
}; };
if output.is_empty() { if output.is_empty() {