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

For tasks and async functions perform serde off the main thread #1033

Open
kjvalencik opened this issue Apr 12, 2024 · 0 comments
Open

For tasks and async functions perform serde off the main thread #1033

kjvalencik opened this issue Apr 12, 2024 · 0 comments

Comments

@kjvalencik
Copy link
Member

kjvalencik commented Apr 12, 2024

For simplicity, async functions and tasks perform serde on the main thread. However, it would perform better to perform this blocking operation on another thread.

Maybe JsonString? It would act exactly like Json, but stop at the intermediary string. It will need some special handling for Err on serde_json::to_string. Maybe a TryFrom implementation and a neon::types::extract::Error.

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

No branches or pull requests

1 participant