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
Fast recompiles to JavaScript #4527
Comments
Added this to the Later milestone. |
Removed this from the Later milestone. |
Added MaybeStale label. |
Added this to the M2 milestone. |
Removed Type-Enhancement label. |
Removed this from the M2 milestone. |
This is not stale, this is a real issue. Talking to our internal customers, they are asking for edit/reload cycles with dart2js to approach edit/reload cycles for Dartium. I admit "much faster" is undefined, but I didn't want to throw a number down. Can we keep this open so we have something to reference? If it helps I can arrange a meeting with our internal customers to get more specifics. Added Triaged label. |
This comment was originally written by beatg...@gmail.com Just my 2 cents. For me, dart2js takes about 8 seconds on a file < 100 lines which imports dart:html, dart:json and dart:uri. My resulting JS files are around 8000 lines (< 300k). I currently have two pages, so two dart files takes 16 seconds, which is a little long for debugging. If possible, I would like to see this build in less than 3 seconds. This should probably be a separate issue, but it would also be nice for dart2js to refuse to build if the file hasn't changed. |
Hi beatgammit, have you tried to minify the output? See http://blog.sethladd.com/2013/03/i-shrunk-my-dart-to-js-code-by-11x-and.html for tips for turning on minification. Hope that helps! |
This comment was originally written by beatgammit...@gmail.com Minifying isn't the problem, which I'll do when I deploy. The problem is how long it takes to compile to JS. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Hi Peter, Is there a bug for "incremental compilation" ? I think I should mark this a dupe of that issue. |
Removed Oldschool-Milestone-Later label. |
Let's make this the bug for "incremental compilation". I'll try to keep this bug updated with progress, but somehow it is more natural to post about my progress on Google+. See https://plus.google.com/u/0/+PetervonderAh%C3%A9/posts/dXix8pdbotE Removed Type-Defect label. |
This comment was originally written by @Emasoft I think that the real issue here is that there are still problems generating js code that works across all browsers. |
@fmuaddib, I think you're talking about a different feature request, and I'd encourage you to file a new bug report for that. Making JavaScript compilation fast is a worthy goal in itself. |
This comment was originally written by @Emasoft @ahe : I just opened a more specific issue ( issue #20346 ). Thank you. |
So uh, @vsmenon do we want to close this as "DDC"? :) |
sgtm |
Use Case from existing customer:
Developing with Dartium works well enough. At the end of the development, the engineer needs to compile to JavaScript for final testing. Often times, this code works fine, but the troubles appear when testing across different browsers.
Once cross-browser testing enters into the picture, compiling to JavaScript occurs frequently and often. The current dart2js compile time is slower than we wish.
Feature Request:
Make recompiles to JavaScript much much faster. This will significantly speed up cross-browser testing (an important step in any major web app development cycle)
The text was updated successfully, but these errors were encountered: