Skip to content

Commit 897feb3

Browse files
sokrasamcx
authored andcommitted
[Turbopack] Perf improvement new backend aggregation (#71356)
### What? A lot of small performance improvements for the task aggregation in the new backend
1 parent a646bcc commit 897feb3

File tree

6 files changed

+475
-196
lines changed

6 files changed

+475
-196
lines changed

packages/next/src/build/swc/generated-native.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,6 @@ export interface StackFrame {
273273
column?: number
274274
methodName?: string
275275
}
276-
export function projectGetSourceMap(
277-
project: { __napiType: 'Project' },
278-
filePath: string
279-
): Promise<string | null>
280276
export function projectTraceSource(
281277
project: { __napiType: 'Project' },
282278
frame: StackFrame
@@ -285,6 +281,10 @@ export function projectGetSourceForAsset(
285281
project: { __napiType: 'Project' },
286282
filePath: string
287283
): Promise<string | null>
284+
export function projectGetSourceMap(
285+
project: { __napiType: 'Project' },
286+
filePath: string
287+
): Promise<string | null>
288288
/** Runs exit handlers for the project registered using the [`ExitHandler`] API. */
289289
export function projectOnExit(project: { __napiType: 'Project' }): Promise<void>
290290
export function rootTaskDispose(rootTask: { __napiType: 'RootTask' }): void

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ impl TurboTasksBackendInner {
405405
drop(task);
406406
if !task_ids_to_schedule.is_empty() {
407407
let mut queue = AggregationUpdateQueue::new();
408-
queue.push(AggregationUpdateJob::FindAndScheduleDirty {
409-
task_ids: task_ids_to_schedule,
410-
});
408+
queue.extend_find_and_schedule_dirty(task_ids_to_schedule);
411409
queue.execute(&mut ctx);
412410
}
413411

0 commit comments

Comments
 (0)