GWT超级开发模式 [英] GWT Super Dev Mode

查看:119
本文介绍了GWT超级开发模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我非常担心这种新的开发生命周期替代方案。
实际上,通过这个特性,我们正在以超级草稿模式将Java文件编译为Js,但对于正常编译超过45分钟(我的最后一个项目)的非常大的项目会发生什么?
每次我改变UI中的某些东西我应该重新编译所有代码!!

乐观地说,超级模式下需要5分钟以上的重新编译!



如果我错了,请告诉我。
Regads,

解决方案

SuperDevMode和草稿模式编译的区别在于SuperDevMode使用常驻编译器,所以当它需要重新编译你的应用程序时,它不会从头开始。 SuperDevMode也只编译一个排列(您的浏览器将使用的一个排列)。



也就是说,编译仍然是单一的。在下一个版本中,GWT将引入渐进式编译:模块将自行预编译,因此不会更改的模块不需要重新编译,只需要链接与其他人一起制作最终的JS。


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,

解决方案

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.

这篇关于GWT超级开发模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆