Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
5db5f136
Unverified
Commit
5db5f136
authored
Jan 13, 2025
by
Tobias Koppers
Committed by
GitHub
Jan 13, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Turbopack] make the single module graph a root task (#74778)
parent
9fd30a53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
module_graph.rs
crates/next-api/src/module_graph.rs
+10
-1
No files found.
crates/next-api/src/module_graph.rs
View file @
5db5f136
...
@@ -575,6 +575,13 @@ impl ReducedGraphs {
...
@@ -575,6 +575,13 @@ impl ReducedGraphs {
}
}
}
}
// This is a performance optimization. This function is a root aggregation function that aggregates
// over the whole subgraph.
#[turbo_tasks
::
function]
async
fn
get_global_module_graph
(
project
:
ResolvedVc
<
Project
>
)
->
Vc
<
SingleModuleGraph
>
{
SingleModuleGraph
::
new_with_entries
(
project
.get_all_entries
())
}
#[turbo_tasks
::
function(operation)]
#[turbo_tasks
::
function(operation)]
async
fn
get_reduced_graphs_for_endpoint_inner_operation
(
async
fn
get_reduced_graphs_for_endpoint_inner_operation
(
project
:
ResolvedVc
<
Project
>
,
project
:
ResolvedVc
<
Project
>
,
...
@@ -592,7 +599,9 @@ async fn get_reduced_graphs_for_endpoint_inner_operation(
...
@@ -592,7 +599,9 @@ async fn get_reduced_graphs_for_endpoint_inner_operation(
false
,
false
,
vec!
[
vec!
[
async
move
{
async
move
{
SingleModuleGraph
::
new_with_entries
(
project
.get_all_entries
())
get_global_module_graph
(
*
project
)
.resolve_strongly_consistent
()
.await
?
.to_resolved
()
.to_resolved
()
.await
.await
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment