-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Split flatbuffers messages into Requests and Responses #1316
Comments
I am interested into investigating this topic, if no one is working on it :) |
I wanted to take a shot at it - I tried some prototyping wanting to split it into:
Possible solutions:
Not a huge gain but requires a lot of renaming. If I got anything wrong, please corret me. @ry do you still want to pursue it? |
@bartlomieju If it creates a bunch of churn, it's not worth it. I would punt unless we can find a way to do this without having to touch a bunch of code in We're still not quite to the point where we can make a final decision on flatbuffers - they might be too slow. However, we're currently bottlenecked elsewhere (not in serialization/deserialization) so we have to work that out first. All that's to say: it's not impossible to imagine removing msg.fbs entirely in the future and replacing with serde (for example) so let's wait until that's ruled out before doing these final invasive clean ups. I'll leave this issue open. |
Got it, thanks 👍 |
deno/src/msg.fbs
Lines 1 to 60 in c1de50b
Currently we have a union of all message types called
Any
. The union is included in theBase
message as an element calledinner
.However there are two distinct types of messages: Requests and Responses. It would be better for type-checking and organizationally if we had two unions.
As an additional note: it seems many of our "table" messages could instead be "struct" messages. It would be interesting to explore that.
The text was updated successfully, but these errors were encountered: