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

Deprecate old approach for argument encoding, with faster alternative #172

Merged
merged 5 commits into from
Jul 17, 2024

Conversation

rscarson
Copy link
Owner

Arguments used to be encoded as an array ref of serde_json::Value, which was inefficient
Now, function calls accept a single &impl Serialize argument, which is decoded directly by v8

The old macro is left in place for compatibility, and a new big_json_args is now available that uses the old method to bypass serde's 16 arg tuple limit.

@rscarson rscarson merged commit 2d61bf2 into master Jul 17, 2024
4 checks passed
@rscarson rscarson deleted the new_args branch July 17, 2024 17:09
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.

1 participant