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

deno size #1872

Closed
cup opened this Issue Mar 2, 2019 · 6 comments

Comments

4 participants
@cup
Copy link

commented Mar 2, 2019

the Node executable is pretty sizable, currently at 21.3 MB

however i noticed that the current Deno is 38.4 MB, nearly double the size

what is the reason for this discrepancy?

@kitsonk

This comment has been minimized.

Copy link
Contributor

commented Mar 2, 2019

It includes the TypeScript compiler and it includes snapshots which increase startup speed. Neither of these are true of Node.js.

@bartlomieju

This comment has been minimized.

Copy link
Contributor

commented Apr 13, 2019

Can we close this one now?

@cup

This comment has been minimized.

Copy link
Author

commented Apr 13, 2019

@bartlomieju I just tested again. Current Node executable is 21.0 MB vs
Deno 41.8 MB.

There seems to be no desire to improve the situation, and in fact the issue
seems to be getting worse.

So maybe the best thing to do is close as "wont fix".

@kitsonk

This comment has been minimized.

Copy link
Contributor

commented Apr 13, 2019

desire to improve the situation

You are comparing apples to oranges. We track the size the binary in the stats and do care about it, but the two things I mentioned above are significant differences to Node.js.

@cup

This comment has been minimized.

Copy link
Author

commented Apr 13, 2019

@kitsonk i think its more like apples versus larger apples.

@ry

This comment has been minimized.

Copy link
Collaborator

commented Apr 13, 2019

We track binary size and want to keep it as small as possible - but Deno includes the typescript compiler which is going to inflate the binary size. It will probably never be smaller than Node.

If you want a very minimal environment check out the Deno crate: https://crates.io/crates/deno
An example program clocks in at 16 megabytes:

> ls -lh target/release/deno_core_http_bench
-rwxr-xr-x  1 rld  staff    16M Apr 13 15:46 target/release/deno_core_http_bench

@ry ry closed this Apr 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.