Skip to content

Conversation

bartlomieju
Copy link
Member

This PR builds on top of denoland/deno_core#1167 that provided 16%
perf improvement for structured clone algorithm by avoid round-trip serialization and
deserialization.

This was applied to the internal structuredClone helper, as well as for MessagePort.postMessage
which is what Web worker and node:worker_thread APIs are using.

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hajime-san
Copy link
Contributor

It seems to be related this.

@bartlomieju bartlomieju merged commit 56f2055 into denoland:main Aug 1, 2025
18 checks passed
@bartlomieju bartlomieju deleted the structured_clone branch August 1, 2025 07:58
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.

4 participants