-
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
Organize dispatch a bit #2796
Organize dispatch a bit #2796
Conversation
0621bc8
to
bdd5995
Compare
2e1f598
to
4299dc5
Compare
19facab
to
8a24b9c
Compare
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.
b1af552
to
d46ddb1
Compare
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.
This patch is too big to review.
Rubberstamp-only LGTM
This patch caused the compiler.js bundle to increase from 7.8 MB to 9.1 MB, which ultimately resulted in adding 2.5 MB to the final executable. This is bad and unexpected. That said I don't want to revert it because it is preliminary work necessary for ultimately removing flatbuffers - which I think will have a very positive impact on the bundles and executable size. |
import * as msg from "gen/cli/msg_generated"; | ||
import * as util from "./util"; | ||
import { OP_FLATBUFFER } from "./dispatch"; | ||
export { msg, flatbuffers }; |
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.
I suspect the bundle size increase is a result of this line.
Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.