VS2010中的JavaScript Intellisense极其缓慢且占用大量内存 [英] JavaScript Intellisense in VS2010 extremely slow and memory hungry

查看:247
本文介绍了VS2010中的JavaScript Intellisense极其缓慢且占用大量内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2010中遇到了Intellisense的两个问题.我们的项目非常大,包含数百个.js文件,其中包含数十万行代码.在仅使用VS2010 5-10分钟后,内存使用量就可以轻松攀升至1gb以上,这会导致速度显着下降,并且每次我在状态栏中出现文件"Updating JavaScript Intellisense"之间的CTRL + TAB时.我们所有的.js文件都有标签,因此Intellisense知道在哪里可以找到相关代码,每个.js都可以轻松引用20-30个其他.js文件.

I'm having 2 problems with the Intellisense in VS2010. Our project is very large, it consists of a couple hundred .js files comprising a couple hundred thousand lines of code. After using VS2010 for as little as 5-10 minutes the memory usage can easily climb to over 1gb, which causes a significant slow down, and every time I CTRL+TAB between files "Updating JavaScript Intellisense" appears in the status bar. All of our .js files have tags so Intellisense knows where to find related code, each .js can easily reference 20-30 other .js files.

因此,我假设每次您按CTRL + TAB或打开一个新的.js文件时,都会重新构建Intellisense,对我来说,无论您是否进行了任何更改,无论您何时进行了任何更改,它都似乎在每次CTRL + TAB时都会重新构建Intellisense. ,而且似乎永远不会释放任何内存,内存使用率也永远不会下降.

So I'm assuming every time you CTRL+TAB or open a new .js file the Intellisense gets rebuilt, and to me it looks like it rebuilds Intellisense every time you CTRL+TAB regardless of whether you made any changes or now, and it never appears to release any memory, the memory usage never goes down.

我已经尝试过我在网上找到的所有解决方案,甚至有些因为我变得绝望而显得愚蠢的解决方案,今天我什至安装了VS2010 SP1 Beta,希望微软能够对其进行修复-不.

I've tried every solution I've found online, even some that seemed stupid because I'm getting desperate, I even installed VS2010 SP1 Beta today hoping Microsoft had fixed it - no.

关闭TABS也无济于事,内存使用率仍然很高. 我当前的解决方案是每30-60分钟重新启动VS2010,并尝试保持打开文件的最小数量.

Closing TABS doesn't help either, the memory usage remains high. My current solution is to restart VS2010 every 30-60 minutes and try keep a minimum number of files open.

有什么想法吗?

推荐答案

尽管我也遇到过同样的问题,但是在解决了JS intellisense的循环引用和注释错字之后,这种情况一直没有发生.

Although I've faced same issue, this situation has not been after resolving circular reference and typo of comment for JS intellisense.

这篇关于VS2010中的JavaScript Intellisense极其缓慢且占用大量内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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