GWT Super Dev Mode

你说的曾经没有我的故事 提交于 2019-12-08 08:19:35

问题


I am very concerned for this new alternative for development life-cycle. Actually by this feature we are compiling Java file to Js in a super draft mode but what happens for very large projects that normal compilation takes over 45min (my last project) ?! every time I change something in UI I should recompile all codes?!

Optimistic speaking, it should take over 5mins to recompile in super mode!

Please let me know if I am wrong. Regads,


回答1:


The difference between SuperDevMode and compiling in draft mode is that SuperDevMode uses a resident compiler, so it doesn't start from scratch when it needs to recompile your app. SuperDevMode also only compiles one permutation (the one that your browser will use).

That said, compilation is still monolithic. In the next version, GWT will introduce incremental compilation: modules will be pre-compiled on their own, so modules that don't change don't need to be recompiled and only need to be "linked" with the others to produce the final JS.



来源:https://stackoverflow.com/questions/21387335/gwt-super-dev-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!