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
f766f9b0
Unverified
Commit
f766f9b0
authored
Oct 10, 2025
by
Niklas Mischkulnig
Committed by
GitHub
Oct 10, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: use vector instead of hash map (#84696)
No need to use a hashmap here.
parent
0a7811ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
module_graph.rs
crates/next-api/src/module_graph.rs
+2
-2
server_actions.rs
crates/next-api/src/server_actions.rs
+2
-2
No files found.
crates/next-api/src/module_graph.rs
View file @
f766f9b0
...
@@ -232,7 +232,7 @@ impl ServerActionsGraph {
...
@@ -232,7 +232,7 @@ impl ServerActionsGraph {
})
})
.try_flat_join
()
.try_flat_join
()
.await
?
;
.await
?
;
Ok
(
Vc
::
cell
(
actions
.into_iter
()
.collect
()
))
Ok
(
Vc
::
cell
(
actions
))
}
}
.instrument
(
span
)
.instrument
(
span
)
.await
.await
...
@@ -730,7 +730,7 @@ impl GlobalBuildInformation {
...
@@ -730,7 +730,7 @@ impl GlobalBuildInformation {
.try_flat_join
()
.try_flat_join
()
.await
?
;
.await
?
;
Ok
(
Vc
::
cell
(
result
.into_iter
()
.collect
()
))
Ok
(
Vc
::
cell
(
result
))
}
}
}
}
.instrument
(
span
)
.instrument
(
span
)
...
...
crates/next-api/src/server_actions.rs
View file @
f766f9b0
...
@@ -416,7 +416,7 @@ fn is_turbopack_internal_var(with: &Option<Box<ObjectLit>>) -> bool {
...
@@ -416,7 +416,7 @@ fn is_turbopack_internal_var(with: &Option<Box<ObjectLit>>) -> bool {
.unwrap_or
(
false
)
.unwrap_or
(
false
)
}
}
type
HashToLayerNameModule
=
FxIndexMap
<
String
,
(
ActionLayer
,
String
,
ResolvedVc
<
Box
<
dyn
Module
>>
)
>
;
type
HashToLayerNameModule
=
Vec
<
(
String
,
(
ActionLayer
,
String
,
ResolvedVc
<
Box
<
dyn
Module
>>
)
)
>
;
/// A mapping of every module which exports a Server Action, with the hashed id
/// A mapping of every module which exports a Server Action, with the hashed id
/// and exported name of each found action.
/// and exported name of each found action.
...
@@ -427,7 +427,7 @@ pub struct AllActions(HashToLayerNameModule);
...
@@ -427,7 +427,7 @@ pub struct AllActions(HashToLayerNameModule);
impl
AllActions
{
impl
AllActions
{
#[turbo_tasks
::
function]
#[turbo_tasks
::
function]
pub
fn
empty
()
->
Vc
<
Self
>
{
pub
fn
empty
()
->
Vc
<
Self
>
{
Vc
::
cell
(
FxIndexMap
::
default
())
Vc
::
cell
(
Default
::
default
())
}
}
}
}
...
...
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