"Analysis in progress" slow

I have a simple page with a gridview. The gridview has 16 template fields. I bind all fields in codebehide. The analysis in progress is slow, extremely slow when I have more fields.

I know I can disable the analysis by pressing Ctrl+8. But any other way to fix the problem?

I am using resharper 2.5 and VS 2005 sp1.



Attachment(s):
Default.aspx.cs
Default.aspx
5 comments
Comment actions Permalink

Actually, during analysis stage all parts of the class are analyzed

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"tao" <no_reply@jetbrains.com> wrote in message
news:13176001.1168385365708.JavaMail.itn@is.intellij.net...
>I have a simple page with a gridview. The gridview has 16 template fields.
>I bind all fields in codebehide. The analysis in progress is slow,
>extremely slow when I have more fields.
>

I know I can disable the analysis by pressing Ctrl+8. But any other way to
fix the problem?

>

I am using resharper 2.5 and VS 2005 sp1.



0
Comment actions Permalink

Do you mean it should be slow in my case?

0
Comment actions Permalink

I have had the same issue arise and it seems to center around the FindControl method.

I can have a lot of logic in the file and by commenting out the logic line by line it appears that the amout of code is not really the problem, but the amout of calls to FindControl is.

I my very "unscientific" testing, it seems that things really start to slow down between the 13-15 call to FindControl.

We have very powerful machines 2 3.0Ghz Xeon processors with 4GB of memory and it will take about 20 seconds to process the attached code. With VS taking about 25% of the CPU and Resharper consuming a lot of memory. Reducing the number of calls to FindControl to about 10 alleviates the problem.

0
Comment actions Permalink

If the generated part of the class is huge, then the analysis of the small
part will be slow too

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"tao" <no_reply@jetbrains.com> wrote in message
news:22385705.1168440634669.JavaMail.itn@is.intellij.net...

Do you mean it should be slow in my case?



0
Comment actions Permalink

Hello,

Could you give some numbers considering the analyzed class? What is the size
(in lines and bytes) of each part of the class on which the slow down is
noticable? How long does it take to highlight the class part? Does it prevent
you from typing?

I have a simple page with a gridview. The gridview has 16 template
fields. I bind all fields in codebehide. The analysis in progress is
slow, extremely slow when I have more fields.

I know I can disable the analysis by pressing Ctrl+8. But any other
way to fix the problem?

I am using resharper 2.5 and VS 2005 sp1.

Best regards,
Andrey Simanovsky


0

Please sign in to leave a comment.