on master help sign in
Added -dedupe option to ghcjs builds by default.

- Smaller JavaScript - Seemingly even faster JavaScript (not measured, just feels like it) - Way faster deployment, due to closure compiler having far less work to do. Size benefits of skeleton app: Without -dedupe: unminified + uncompressed: 9.1 MB unminified + compressed: 867 kB minifed + uncompressed: 2.8 MB minified + compressed: 520.3 kB With -dedupe: unminified + uncompressed: 5.3 MB unminified + compressed: 634.7 kB minifed + uncompressed: 1.5 MB minified + compressed: 361.6 kB Those reductions improve loading times for bigger apps quite dramatically, also the time the closure compiler takes is suddenly manageable again. (Like one minute, instead of half an hour or more.)

commitc0ad1a099873948f4300a3ce005e2076fd56cc11 authorRobert Klotzner <robert.klotzner@gmx.at> dateWed 10 Apr 2019, 14:54 (8 years ago) parent20ba787
1 file changed+2
skeleton/frontend/frontend.cabal+2
skeleton/frontend/frontend.cabal+2
@@ -30,3 +30,5 @@ executable frontend
3030 ghc-options: -threaded
3131 if os(darwin)
3232 ghc-options: -dynamic
33+ if impl(ghjcs)
34+ ghcjs-options: -dedupe