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

Generated JS is large (700KB after minify) #9166

Closed
DartBot opened this issue Mar 14, 2013 · 12 comments
Closed

Generated JS is large (700KB after minify) #9166

DartBot opened this issue Mar 14, 2013 · 12 comments
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js

Comments

@DartBot
Copy link

DartBot commented Mar 14, 2013

This issue was originally filed by ali.a...@gmail.com


What steps will reproduce the problem?

  1. Compile a large dart project source code to JS using dart2js (e.g. Glyph3D)
  2. Check the size of the generated js file (refont_launcher.dart.js)

What is the expected output? What do you see instead?
A smaller file size. Instead see a 1.5MB JS file, 700KB with minify flag

What version of the product are you using? On what operating system?
Dart Editor version 0.4.1_r19425
Dart SDK version 0.4.1.0_r19425

Please provide any additional information below.
JS file - 1.5MB (attached)
JS file with Minify flag - 700KB (attached)

Dart Source Code
[Sent to Seth Ladd]


Attachments:
refont_launcher.dart.js (1.52 MB)
refont_launcher.dart.min.js (693.46 KB)

@sethladd
Copy link
Contributor

See me for original source code.


Added Area-Dart2JS, Triaged labels.

@ErikCorryGoogle
Copy link
Contributor

In the interest of having a baseline to measure future progress against, here are the minified sizes:
228466 bytes
156649 bytes

@ErikCorryGoogle
Copy link
Contributor

Zopfli sizes:
212396
147654

@sethladd
Copy link
Contributor

Thanks Erik. For comment #­2, did you mean "gzipped" instead of "minified" ?

@ErikCorryGoogle
Copy link
Contributor

Yes sorry that's what I meant

@sethladd
Copy link
Contributor

NP, thanks for the additional stats!

@kasperl
Copy link

kasperl commented Apr 22, 2013

Added this to the Later milestone.

@kasperl
Copy link

kasperl commented May 23, 2013

Added TriageForM5 label.

@kasperl
Copy link

kasperl commented May 28, 2013

Removed TriageForM5 label.

@kasperl
Copy link

kasperl commented Jul 10, 2014

Removed this from the Later milestone.
Added Oldschool-Milestone-Later label.

@kasperl
Copy link

kasperl commented Aug 4, 2014

Removed Oldschool-Milestone-Later label.

@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed triaged labels Feb 29, 2016
@dgrove
Copy link
Contributor

dgrove commented Apr 25, 2018

Obsolete - dart2js sizes much smaller now.

@dgrove dgrove closed this as completed Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-dart2js
Projects
None yet
Development

No branches or pull requests

6 participants