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

feat(interface)!: Use MessagePack for calls #780

Merged
merged 29 commits into from
Jan 8, 2024
Merged

Conversation

monoid
Copy link
Contributor

@monoid monoid commented Dec 25, 2023

Top-level structs use multicodec-prefixed MessagePack, the nested structures (arguments, tetraplets) use just ordinary MessagePack.

The old benchmark was against MessagePack version too, so the numbers haven't changed much.

Top-level structs use multicodec-prefixed MessagePack, the nested
structures (arguments, tetraplets) use just ordinary MessagePack.
@monoid monoid added P-high priority: high A-avm-server area: AquaVM server A-avm-client area: AquaVM client C-performance category: an issue improves performance T-optimization track: optimization labels Dec 25, 2023
@monoid monoid self-assigned this Dec 25, 2023
Copy link

linear bot commented Dec 25, 2023

@monoid monoid added the e2e Run e2e workflow label Dec 27, 2023
It is important for JS interop and data compatiblity detection.
Binary format implementations like `rmp-serde` do not bother converting keys from strings, unlike `serde_json`.
So, we do it manually for all formats, using CallResults with string keys.
monoid and others added 2 commits January 4, 2024 20:04
Co-authored-by: Mike Voronov <michail.vms@gmail.com>
Co-authored-by: Mike Voronov <michail.vms@gmail.com>
It seems that certain services may depend on key ordering etc.  Use JSON
for a while for backward compatibility.
Copy link
Member

@mikevoronov mikevoronov left a comment

Choose a reason for hiding this comment

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

utACK

@monoid monoid merged commit 325eea7 into master Jan 8, 2024
22 checks passed
@monoid monoid deleted the feat/VM-397-binary-calls branch January 8, 2024 11:01
@fluencebot fluencebot mentioned this pull request Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm-client area: AquaVM client A-avm-server area: AquaVM server C-performance category: an issue improves performance e2e Run e2e workflow P-high priority: high T-optimization track: optimization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants