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

Organize dispatch a bit #2796

Merged
merged 2 commits into from
Aug 22, 2019
Merged

Organize dispatch a bit #2796

merged 2 commits into from
Aug 22, 2019

Conversation

ry
Copy link
Member

@ry ry commented Aug 20, 2019

Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher.

@ry ry changed the title Dispatch flatbuffers Organize dispatch a bit Aug 20, 2019
@ry ry force-pushed the dispatch_flatbuffers branch 2 times, most recently from 0621bc8 to bdd5995 Compare August 20, 2019 22:22
@ry ry requested a review from piscisaureus August 20, 2019 22:36
cli/ops/mod.rs Outdated Show resolved Hide resolved
Just some clean up reorganization around flatbuffer/minimal dispatch
code. This is prep for adding a JSON dispatcher.
Copy link
Member

@piscisaureus piscisaureus left a 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

@ry ry merged commit bdc97b3 into denoland:master Aug 22, 2019
@ry ry deleted the dispatch_flatbuffers branch August 22, 2019 00:42
@ry
Copy link
Member Author

ry commented Aug 22, 2019

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.

Screen Shot 2019-08-22 at 12 30 43 PM

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 };
Copy link
Member Author

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.

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.

3 participants