Commit 135224c6 authored by Tobias Koppers's avatar Tobias Koppers Committed by Luke Sandberg

add aggregation_update_no_batch feature

parent 0a3f53b4
......@@ -16,6 +16,7 @@ workspace = true
default = []
print_cache_item_size = ["dep:lzzzz"]
no_fast_stale = []
aggregation_update_no_batch = []
verify_serialization = []
verify_aggregation_graph = []
verify_immutable = []
......
......@@ -1825,6 +1825,14 @@ impl AggregationUpdateQueue {
new_follower_id: TaskId,
mut upper_ids: SmallVec<[T; N]>,
) {
if cfg!(feature = "aggregation_update_no_batch") {
for upper_item in upper_ids {
let (upper_id, count) = upper_item.task_id_and_count();
self.inner_of_upper_has_new_follower(ctx, new_follower_id, upper_id, count);
}
return;
}
#[cfg(feature = "trace_aggregation_update")]
let _span =
trace_span!("process new follower (n uppers)", uppers = upper_ids.len()).entered();
......@@ -2007,6 +2015,14 @@ impl AggregationUpdateQueue {
new_follower_ids: SmallVec<[T; N]>,
upper_id: TaskId,
) {
if cfg!(feature = "aggregation_update_no_batch") {
for new_follower_item in new_follower_ids {
let (new_follower_id, count) = new_follower_item.task_id_and_count();
self.inner_of_upper_has_new_follower(ctx, new_follower_id, upper_id, count);
}
return;
}
#[cfg(feature = "trace_aggregation_update")]
let _span = trace_span!(
"process new follower (n followers)",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment