gwt 是慢还是正常?
我想问一下gwt-ext应用程序的速度 有没有人尝试过 Gwt-ext 应用程序并知道它是慢还是正常?
我可以使用 gwt-ext 处理图像吗?例如我想将图像设为黑白?
谢谢你
萨布纳吉姆
i want to ask about the speed of gwt-ext applications
Are there any one tried Gwt-ext application and know that Is it slow or normal ?
can i handle images with gwt-ext as example i want to make the image black and white ?
thank you
saebnajim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
编译后的应用程序本身运行速度并不慢,但 GWT 编译器比一只被脑白质切除的冷冻蜗牛还慢。
The compiled apps themselves do not run slow, but the GWT compiler is slower than a frozen snail with a lobotomy.
首先,记住一些区别很重要。
GWT-Ext 并不代表 GWT 技术,因为它只是传统 JavaScript 库的包装器(类似于它的分支 YUI)。
GXT 是同一家公司尝试使用 GWT 按照其预期方式复制 GWT-Ext; 不包装手工编码的 JavaScript,而是让 GWT 完成大部分工作。 不幸的是,恕我直言,他们很糟糕,并产生了大量垃圾。 它非常笨重且缓慢。
普通 GWT 应用程序没有理由不能像 GWT-Ext 一样快或更快。 我将省略许可讨论,因为它与问题无关,但这是另一件事需要考虑。
至于您关于图像处理的附加问题...如果可能的话,我认为您可以做到这一点的唯一方法是使用 Canvas 元素。 GWT 有一个即将推出的小部件库(“孵化器”),其中有一个可用的 Canvas 小部件。
GWT Canvas 演示
First, it's important to remember some distinctions.
GWT-Ext is not representative of GWT's technology because it is simply a wrapper around a traditional JavaScript library (similar to YUI, which is where it branched from).
GXT is the same company's attempt at duplicating GWT-Ext using GWT the way it was intended; not wrapping hand-coded JavaScript, but letting GWT do most of the work. Unfornately, IMHO, they suck at it and have produced a load of garbage. It's very clunky and slow.
There's no reason plain GWT applications cannot be as fast or faster that GWT-Ext. I'll leave out the licensing discussion since it's not relevant to the question, but it's another thing to take into mind.
As for your add-on question regarding image manipulation... if that's possible, the only way I think you could do that is by using a Canvas element. GWT has a library of upcoming widgets (the 'incubator') which has a working Canvas widget.
GWT Canvas Demo
我在我的应用程序中使用 GWT-ext,并在一台速度较慢的计算机上的浏览器中对其进行了测试。 它真的很快而且动画也非常流畅。 纯 Java 替代品 GXT 对我来说运行得不太快,尽管我更愿意使用这个,因为它有更好的支持。
I am using GWT-ext for my application and tested it on a slow computer in its browser. It is really fast and the animations are very smooth. The pure Java alternative GXT doesn't run so fast for me, altough i rather used this one because of better support.
GWT-Ext 比纯 GWT 应用程序明显慢。 尤其是在表单渲染方面。
GWT-Ext is significantly slower than pure GWT application. Especially in form rendering.
实际上 GWT 应用程序的开发者控制台看起来要慢得多。 但是一旦应用程序被编译& 部署在主服务器中,应用程序变得更加活跃并且响应速度非常快。因此,只有在部署后才决定应用程序的速度。 只需通过部署在 jboss/apache 服务器中并检查它的速度即可。 如果您需要提高应用程序的速度,请使用代码优化技术,这对增加响应时间更有帮助。
Actually Developer console of GWT App looks much slower. but once the app is compiled & deployed in main server the application becomes more active and responds very quickly.. so decide about the speed of the application only after deploying. Just check its speed by deploying in jboss/apache server and check it. If you need to improve speed of application use code optimization tech and which will be more helpful in increasing response time.