-
Notifications
You must be signed in to change notification settings - Fork 110
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
[WASM ABI 1.0] impl __call_reducer__
using bytes_source_read
#1609
Conversation
if args == BytesSource::INVALID { | ||
return logic(&[]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @cloutiertyler -- slight tweak to the WASM ABI proposal: the host can/will send __call_reducer__
an invalid args
which means that the arguments are empty. This is useful as it allows us to avoid a host call as well as avoid allocation. The primary winner for this I imagine are the connect/disconnect reducers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're tweaking the proposal, please make sure changes make it back into the proposal.
4376778
to
23fdafc
Compare
04d6561
to
2bc2538
Compare
ff4791b
to
99cbc90
Compare
74e571f
to
5877d30
Compare
99cbc90
to
cedf36a
Compare
cedf36a
to
08590c7
Compare
Description of Changes
This adds
_bytes_source_read
and implements__call_reducer__
with it.Meanwhile,
_buffer_len
and_buffer_consume
are removed.cc #1460