Skip to content

Commit 9bf0dfb

Browse files
Veykrildavidbarsky
andcommitted
Update src/zalsa_local.rs
Co-authored-by: David Barsky <[email protected]>
1 parent e67fa8f commit 9bf0dfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/zalsa_local.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ pub(crate) struct QueryRevisions {
309309
/// previous revision. To handle this, `diff_outputs` compares
310310
/// the structs from the old/new revision and retains
311311
/// only entries that appeared in the new revision.
312+
///
313+
/// Since not all queries produce a tracked struct, wrapping
314+
/// `IdentityMap` in an `Option<Box<T>>` reduces the size of
315+
/// `QueryRevisions` by 3 words (24 bytes on a 64-bit platform).
312316
pub(super) tracked_struct_ids: Option<Box<IdentityMap>>,
313317

314318
pub(super) accumulated: Option<Box<AccumulatedMap>>,

0 commit comments

Comments
 (0)