Skip to content

[Stack Switching] Use move semantics for resume entries#8034

Open
jiang1997 wants to merge 1 commit intoWebAssembly:mainfrom
jiang1997:optimize-push-resume-entry
Open

[Stack Switching] Use move semantics for resume entries#8034
jiang1997 wants to merge 1 commit intoWebAssembly:mainfrom
jiang1997:optimize-push-resume-entry

Conversation

@jiang1997
Copy link

Add rvalue reference overload for pushResumeEntry and apply std::move throughout suspend/resume operations to eliminate unnecessary copies.

Add rvalue reference overload for pushResumeEntry and apply std::move
throughout suspend/resume operations to eliminate unnecessary copies.
@kripken
Copy link
Member

kripken commented Nov 10, 2025

Have you measured the benefit here? I'm curious because it isn't obvious to me (and seems to add a little complexity)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants