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

Upgrade to napi@0.5 #1025

Merged
merged 1 commit into from Sep 4, 2020
Merged

Upgrade to napi@0.5 #1025

merged 1 commit into from Sep 4, 2020

Conversation

Brooooooklyn
Copy link
Member

Some apis changed.

I have tried migrate get_deserialized to from_js_value (which implemented by serde), but performance got a little decrease. I think it's because call nodejs napi (create_string/create_boolean etc....) has heavy overhead, serde_json.from_slice could avoid them.

@kdy1
Copy link
Member

kdy1 commented Sep 4, 2020

Thanks!

@kdy1 kdy1 merged commit fcc9ae7 into swc-project:master Sep 4, 2020
@kdy1 kdy1 added this to the v1.2.23 milestone Sep 6, 2020
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 14, 2022
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.

None yet

2 participants