@@ -30,6 +30,7 @@ pub enum UpdateCellOperation {
3030 cell_ref : CellRef ,
3131 #[ bincode( with = "turbo_bincode::indexmap" ) ]
3232 dependent_tasks : FxIndexMap < TaskId , SmallVec < [ Option < u64 > ; 2 ] > > ,
33+ #[ cfg( feature = "trace_task_dirty" ) ]
3334 has_updated_key_hashes : bool ,
3435 content : Option < TypedSharedReference > ,
3536 queue : AggregationUpdateQueue ,
@@ -101,6 +102,7 @@ impl UpdateCellOperation {
101102 // When not recomputing, we need to notify dependent tasks if the content actually
102103 // changes.
103104
105+ #[ cfg( feature = "trace_task_dirty" ) ]
104106 let has_updated_key_hashes = updated_key_hashes. is_some ( ) ;
105107 let updated_key_hashes_set = updated_key_hashes. map ( |updated_key_hashes| {
106108 Lazy :: new ( || updated_key_hashes. into_iter ( ) . collect :: < FxHashSet < u64 > > ( ) )
@@ -161,6 +163,7 @@ impl UpdateCellOperation {
161163 cell,
162164 } ,
163165 dependent_tasks,
166+ #[ cfg( feature = "trace_task_dirty" ) ]
164167 has_updated_key_hashes,
165168 content,
166169 queue : AggregationUpdateQueue :: new ( ) ,
@@ -223,6 +226,7 @@ impl Operation for UpdateCellOperation {
223226 is_serializable_cell_content,
224227 cell_ref,
225228 ref mut dependent_tasks,
229+ #[ cfg( feature = "trace_task_dirty") ]
226230 has_updated_key_hashes,
227231 ref mut content,
228232 ref mut queue,
0 commit comments