Groups | Blog | Home
all groups > vb.net upgrade > march 2006 >

vb.net upgrade : keyboard delay problem in VS 2005


Mark
3/6/2006 9:53:16 PM
Hi,

I just updated a good sized solution from VS 2003 to VS 2005 (3 EXE and 8
DLL projects). Most of the projects are VB; a couple are C#

What I am finding is that when editing code, after modifying a statement,
even trivially (like inserting a space in front of the closing parenthesis
of a function call), when I move the caret off the modified line, the VS IDE
freezes for about 3 seconds.

This is maddening - it happens even when modifying a comment line!! This is
not enhancing my productivity!

I've poured through the general VS options and tried turning a number of
things on or off, but to no avail. It *seems* like its the "background"
compiler trying to parse my change, but who knows ... note that this is all
while editing a project that is *not* running. Also note that performance
was fine under VS 2003.

BTW, I have edit-and-continue turned off because stepping through running
code with E&C on gives me the a slight delay on each step (perhaps twice the
length of a step without E&C, say 1-1.5 secs).

Anyone have an idea of what the heck might be slowing down code editing ??

Thanks.

Ken Halter
3/8/2006 3:22:29 PM
[quoted text, click to view]

Just going off of memory here (since answers aren't exactly "stacking up"
<g>) The slow down is caused by background compilation. That background
stuff allows the IDE to show those little squiggly's when you forget to
declare a variable (etc). So far, I've just "played around" in dotNet so
nothing I've created causes the slowdown. If I'm correct, basically, every
time you hit a key, the IDE is crunching the entire app to see if you're
typing something that exists. Of course, that means, the bigger the app, the
faster the PC you'll need to get "smooth" operation out of it.

At this point, I don't have a clue about which options to select/de-select
to speed things up and don't have a project large enough for any of the
settings to show a difference. Try clicking on Tools/Options, make sure the
'Show All Settings' checkbox is checked. From there, try anything that looks
obvious. Maybe clearing the 'Enable Error Correction Suggestions' and
similar checkboxes will speed things up for you. Of course, everything you
clear has an impact on "the look and feel" so be gentle at first <g>

Multi-Core CPUs are coming down in price too ;-)

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..

Mark
3/8/2006 4:41:38 PM
Thanks Homer :-)

I have 1.25 GB RAM, so that's not the problem ... anyone have any other
thoughts ??

It's probably not Intellisense per se, I mean, I'm not waiting for a member
list to drop. I get this 3 second delay after stepping of an edited line -
like the IDE is having trouble parsing the line or something

I don't know what it is, but man is it frustrating. It only happens in the
larger solution I'm working on. Other solutions behave fine.

Sheesh!

[quoted text, click to view]

Homer J Simpson
3/8/2006 7:32:51 PM

[quoted text, click to view]

Do you have enough RAM? I suspect it may be the 'Intellisense' doing that
FWIW.


Mark
3/9/2006 12:00:00 AM
Hi Ken,

Thanks for the response. Yeah, I'm betting its one of those new IDE
features. I've tried many of those settings ... no luck yet. It's
particularly galling because my coworker, who has the same computer (a Dell
Inspiron 8500 with 2.4 GHz Pentium 4) - except he only has 1 GB memory! -
does not have the problem !! We've compared config settings and seen no
significant differences (other than him not getting that delay!)

And this did not happen with this computer and this project in VS 2003 ...
I'll keep hacking at it, and worst case, I'll burn one of those MSDN support
incidents (and likely a few hours on the phone with MS support :-)

Cheers,

Mark

[quoted text, click to view]

Marijan
3/9/2006 7:52:32 AM
Hello Mark

I have the same problem as you describe.
My Laptop Latitude D800 has 1 GB Ram and 1.8 GHz RAM.

Pleas post when you find a solution. I will do as well.

Best Regards.

Kruljac Marijan
http://www.swissdeveloper.ch

[quoted text, click to view]
Homer J Simpson
3/10/2006 11:16:59 PM

[quoted text, click to view]

I know when I was running 256 Mb it was very bad. Now I have 1.25 Gb and
it's much better but still noticeable. Perhaps you are running too many
background programs? Are you using the swapfile heavily?

Marijan
3/16/2006 2:09:29 AM
No swaping. Using memory is about 800MB.

I found out when I have many windows open and one or more big Forms it
becomes slow.
Just close Forms and it works fine.

Best Regards

Kruljac Marijan
http://www.swissdeveloper.ch


[quoted text, click to view]
Marijan
3/16/2006 2:09:31 AM
No swaping. Using memory is about 800MB.

I found out when I have many windows open and one or more big Forms it
becomes slow.
Just close Forms and it works fine.

Best Regards

Kruljac Marijan
http://www.swissdeveloper.ch


[quoted text, click to view]
AddThis Social Bookmark Button