Ext.js有内存问题吗? [英] Are There Memory Issues with Ext.js

查看:128
本文介绍了Ext.js有内存问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的应用程序的UI最近重新使用Ext.js,我注意到,IE浏览器的内存使用情况似乎非常大。在使用IE时,Ext.js是否有内存问题?

The UI for an application I work on was recently redone with Ext.js and I have noticed the memory usage of IE seems very large when viewing it. Are there known memory issues with Ext.js when using IE?

推荐答案

在您的问题中跳出来的第一件事是你在IE中看到这个。我的团队最近经历了同样的问题(IE上的Extjs)。事实证明,Ext不是罪魁祸首,而是IE可能是这个原因。

The first thing that jumps out at me in your question is that you are seeing this in IE. My team recently went through the same issue (Extjs on IE). It turns out Ext is not the culprit but rather IE is likely the cause.

一个快速的GoogleIE关闭内存泄漏会发现你有很多解释,但是基本要点如下:

A quick Google for 'IE closure memory leak' will find you plenty of explanations, but the basic gist is as follows:

IE使用两个独立的引擎来管理DOM和JavaScript。当JavaScript进行调用以创建DOM元素时,Javascript引擎会跨越另一个来创建它。如果您将JavaScript附加到DOM元素上的事件中,则会从DOM端创建链接到JavaScript端。

IE uses two separate engines to manage the DOM and JavaScript. When JavaScript makes a call to create a DOM element, the Javascript engine reaches across to the other to create it. If you attach JavaScript to an event on a DOM element, a link is created back from the DOM side to JavaScript side.

问题在于每个引擎都有它自己的垃圾收集并不能看到对方的其他引擎。所以循环引用是非常容易遇到的,可以很快地吃大量的记忆。

The problem lies in the fact that each engine has its own garbage collection and can't see across to the other engine. So circular references are REALLY easy to come across that can eat of large quantities of memory very quickly.

这篇关于Ext.js有内存问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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