Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript Intellisense in VS2010 extremely slow and memory hungry

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.

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.

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.

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.

Any ideas?

like image 399
DavidT Avatar asked Jan 07 '11 14:01

DavidT


1 Answers

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

like image 121
kensugi Avatar answered Nov 08 '22 21:11

kensugi