Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(plugin): Use rmp_serde instead of rkyv #7163

Closed
wants to merge 74 commits into from
Closed

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Mar 29, 2023

Description:

This PR changes serialization/deserialization for plugins from rkyv to rmp-serde. The performance is a bit regressed, but I think it's fine. For the input file of size 9.6 MB (typescript), a single invocation of a Wasm plugin with rkyv took 0.4 seconds, while rmp-serde took 1 second. It's a clear regression, but we can now have backward compatibility to some extent, and we will be able to update rustc too.

Related issue:

@kdy1 kdy1 added this to the Planned milestone Mar 29, 2023
Copy link
Member Author

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

swc-bump:

  • swc_atoms
  • ast_node
  • swc_plugin_proxy
  • swc_plugin_macro

kodiakhq[bot]
kodiakhq bot previously approved these changes Mar 30, 2023
@kdy1 kdy1 enabled auto-merge (squash) March 30, 2023 04:00
@kdy1 kdy1 disabled auto-merge March 30, 2023 05:54
@kdy1
Copy link
Member Author

kdy1 commented Mar 30, 2023

Closing in favor of #7170

@kdy1 kdy1 closed this Mar 30, 2023
@kdy1 kdy1 deleted the drop-rkyv branch March 30, 2023 08:06
@kdy1 kdy1 modified the milestones: Planned, v1.3.44 Mar 30, 2023
@swc-project swc-project locked as resolved and limited conversation to collaborators Apr 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Plugin crashes with rkyv LayoutError.
1 participant