We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02fadf commit a9d15e8Copy full SHA for a9d15e8
turbopack/crates/turbo-tasks-backend/src/backend/operation/connect_child.rs
@@ -62,9 +62,7 @@ impl ConnectChildOperation {
62
let parent_aggregation = if is_root_node(current_parent_aggregation.base) {
63
u32::MAX
64
} else {
65
- let target_distance = u32::try_from(1 << (children_count / 100 + 1).ilog2())
66
- .unwrap()
67
- .wrapping_sub(1);
+ let target_distance = children_count.ilog2() * 2;
68
if target_distance != current_parent_aggregation.distance {
69
queue.push(AggregationUpdateJob::UpdateAggregationNumber {
70
task_id: parent_task_id,
0 commit comments