googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 413 forks source link

Add ability to disable built-in compilation for Dart #3403

Open DanTup opened 10 years ago

DanTup commented 10 years ago

The built-in Dart compilation ("Building...") is very slow (presumably because it's running a version of dart2js that was dart2js'd?) and appears to occur when I edit Dart projects even if I never press Run or access it via a browser.

On my desktop PCs I tend to use Dartium through IIS, or if I want to use another browser, manually run the native Dart version of pub serve. This makes the slow "Building..." just a slight annoyance.

On my Chromebook, I'm in dev mode and also run Dart and pub natively so "Building..." is a waste of resource (and battery) and slows the editor down.

It would be nice if I could just use CDE as an editor for the Dart; and disable all compilation or other clever things CDE is doing (or at least; don't do any of it unless something hits the port the built-in pub serve is listening on).

devoncarew commented 10 years ago

Cool ,I think this is something we'll add. I'm thinking we'll have a file based format for tweaking infrequently used settings, and things could be one of them.

DanTup commented 10 years ago

@devoncarew This is really needed :(

My prototype is currently a tiny Dart app; it has around 10-15 things in the packages folder, and CDE has been churning my CPU for around 30 minutes (and using over 1GB RAM) since I opened it. It's caused my CPU fan to become quite loud and is pretty annoying. It's shown "Building..." since I opened it. (It's a 2.8GHz Core i7 desktop, 8GB RAM, 64bit Windows 7 Enterprise, latest 64bit Chrome stable).

Either something has gone badly wrong, or this is seriously inefficient; and since I'm not even using its pub instance, it seems really wasteful.

I'd be happy to have a go at adding this myself if someone could provide some pointers.

DanTup commented 10 years ago

(It's still going; I'm sure this is broken... let me know if there's a way I can help debug!)