简体   繁体   English

GWT超级开发模式

[英]GWT Super Dev Mode

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) ?! 实际上,通过此功能,我们以超级草稿模式将Java文件编译为Js,但是对于大型项目,正常编译需要45分钟(我的上一个项目)会发生什么? every time I change something in UI I should recompile all codes?! 每次我在UI中更改某些内容时,都应该重新编译所有代码?

Optimistic speaking, it should take over 5mins to recompile in super mode! 乐观地说,以超级模式重新编译需要5分钟以上!

Please let me know if I am wrong. 如果我错了,请告诉我。 Regads, Regads,

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和在草稿模式下进行编译之间的区别在于,SuperDevMode使用常驻编译器 ,因此在需要重新编译应用程序时,它不会从头开始。 SuperDevMode also only compiles one permutation (the one that your browser will use). SuperDevMode也仅编译一个排列 (浏览器将使用的排列 )。

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. 在下一个版本中,GWT将引入增量编译 :模块将自行进行预编译,因此无需更改的模块无需重新编译,只需与其他模块“链接”即可生成最终模块。 JS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM