Make GWT load faster during DevMode

点点圈 提交于 2019-12-23 02:22:12

问题


What are the ways to make browser page refresh faster during GWT DevMode? As code gets complex DevMode becomes slower.

One of my "performance tweak" is to add the -vmargs in the project Run Configuration, what other tweaks can we do?


回答1:


Use Firefox, rather than Chrome - Chrome with dev mode is much slower than firefox.

Try to avoid passing into/out of JSNI - that often is quite expensive.

And, as always, more ram helps, if you can get it.

Looking to the future, according to Ray Cromwell's recent post on google plus (check out the comments too), GWT is moving in a direction toward where you can compile your code, and see what is happening as it runs in your original java source. Rather than speeding up the dev mode, which needs to call back and forth between JS and your Java, they are trying to speed up the draft compilation, so these source maps will make it possible debug your code with the pag running as fast as the browser will let it.



来源:https://stackoverflow.com/questions/9047686/make-gwt-load-faster-during-devmode

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