在DevMode期间使GWT加载更快 [英] Make GWT load faster during DevMode

查看:116
本文介绍了在DevMode期间使GWT加载更快的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GWT DevMode期间如何让浏览器页面刷新更快?随着代码变得复杂,DevMode变得越来越慢。

我的一个性能调整是在项目运行配置中添加-vmargs,我们可以做些什么调整?

解决方案

使用Firefox,而不是Chrome - 使用dev模式的Chrome比Firefox慢得多。

尽量避免传入/传出JSNI - 这通常是非常昂贵的。



和往常一样,如果可以的话,拿到它。



展望未来,根据(请查看相关评论),GWT正朝着可以编译代码的方向发展,并且看到它在原始代码中运行时发生了什么java源码。与其加速开发模式,需要在JS和Java之间来回调用,他们试图加快草稿编译速度,因此这些源代码地图将使您可以使用运行速度与pag一样快的代码来调试代码。浏览器会让它。


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?

解决方案

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.

这篇关于在DevMode期间使GWT加载更快的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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