Parsing aspx/ascx files is incredibly slow
While ReSharper 4.5 has made some definite performance gains for my company, one area where performance has gotten worse is in loading aspx/ascx files.
A large aspx file (391 lines) can take about 20-30 seconds to load into an editor window, but once loaded VS.Net will hang (with the annoying Visual Stupid Delay Notification message popup) for minutes while ReSharper parses the file (at least thats what I believe is happening).
As for the structure of the file itself, it is an aspx page that inherits from a MasterPage. There are a number of UserControls on the page, within the ContentPlaceHolder blocks.
Is there anything I can do to get your some performance/debug information on what is happening during the parsing that is taking so long? My team really needs to get this problem solved, so please let me know if there is anyway I can get more information to you.
[Update]
I've done a little more investigating. The problem seems to be one pages that are loaded that dont have something in the cache. In my previous comment, the page that took a long time to load, doesnt take a long time in subsequent loads.
When I picked an aspx file (986 lines, with a MasterPage) that I had not opened in a while, the whole process of opening the file to VS.Net being usable took 92 seconds.
I was running VS.Net through DotTrace during this load and I saved a snapshot. The snapshot is 55MB, I have compressed it down to a 10MB zip file and attached it to this message.
Thanks,
Jeff
Attachment(s):
skinningconsole.aspx.zip
Please sign in to leave a comment.
Hello Jeff,
Could you please attach DotTrace profiler before opening
the following files and take a snapshot after they completly loaded.
Send snapshot to me Kirill.Falk@jetbrains.com for investigation.
If it' s possible you could send me these files too.
-
Kirill Falk
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
We have a developer in our group with a similar complaint.
Opening a large Website essentially locks up Visual Studio 2008 for five or
more minutes while Resharper is parsing files, with the UI being
non-responsive. In this case, performance actually seems worse than 4.1.
It's a serious issue that is preventing me from being able to convince all
our developers to upgrade (or even use Resharper to begin with).
Performance on large websites (not web projects) is borderline abysmal.
"Jeff Pennal" <no_reply@jetbrains.com> wrote in message
news:27924795.7571242332777325.JavaMail.clearspace@app8.labs.intellij.net...
>
>
>
>
>
Any updates to this issue? I am unable to edit aspx/ascx files because of this issue.
I don't have the problem with parsing, but I do have a problem that it is slow when I am typing in my .aspx file.
Note that this happens eventhough I disabled code analysis on the page (with ctrl+8) !!
The file has 430 lines and about 30 <% %> -tags, plus circa 10 <%-- --%> comments.
I made measurements with Microsoft "Process Explorer":
----------------------------------------------
Whenever I try to type something, the processor goes up to 40% while I am typing, and spikes up to 90% after I finished typing. It then stays at 90% for about 3 seconds.
For comparison, If I disable resharper completely (Tools->Addin-manager), the CPU is at around 3% all the time while typing in the aspx file!
I would like to - at least - be able to DISABLE ANY WORK that ReSharper does when I am editing my aspx page. I don't understand what it is doing anyways since I have disabled code analysis on the page?
I have taken a screenshot from Processor Explorer on activity when I am typing in the file. As you can see, five mscorwks.dll are running for a total of circa 40% cpu. And this goes on all the time while I am typing. As you can see in the image, code analysis is disabled. Is there anything else I can do?
Regards,
Fredrik
Attachment(s):
resharper while editing aspx file.jpg
Hello Fredrik
Could you please try profiling this behavior with the dotTrace profiler:
1. Download and install dotTrace from http://www.jetbrains.com/profiler/download
2. Start dotTrace, choose 'Profile Application' and point dotTrace to Visual Studio executable (devenv.exe)
3. Make sure the following options are set:
Type: Performance profiling
Tracing profiling
Record wall time
Start profiling immediately: off
and press 'Start'
4. Wait while Visual Studio starts, open your solution and the aspx file
5. Press 'Start profiling', edit the file for some time and press 'Get Snapshot'
6. Save the snapshot
Could you please send the snapshot to andrew.serebryansky at jetbrains.com? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"Same complaint on my end and I'm using Resharper 4.5.1231 with VS 2008. This problem does not exist in plain classes or other types of code files. It just happens in .aspx, .ascx, .ashx, and other web types of files.
So today for some reason outof nowhere, again Resharper decides to be a pain and when I'm typing anything in my .aspx its showing the cursor processing for about 5-10 seconds each time I'm done typing or each time I try to go to type and hit the first keystroke. I'm not doing anything Intellisense based / related half the time either. It happens even when backspacing or when performing any copy/paste functions also. In fact just now I tried to copy and paste something and it took 10 seconds for the paste to happen!
I sent you my snapshot a few mintues ago. Painful! is the only word to describe this! I've got code to get done!
If I review that snapshot in dotTrace and view it in Plain View and sort by time, all of them are JetBrains and go from anywhere from 2 seconds of processing to 20 seconds each time it does something and there are a crapload of entries like this during my snapshot!
Hello
I've posted a reply here: http://www.jetbrains.net/devnet/message/5246645#5246645
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"I want to reply to my own post.
Today I downloaded and installed the ReSharper 5.0 Beta.
I am happy to see that ReSharper no longer takes CPU when I am editing an aspx file with code analysis turned off.
There are lots of other things that don't work in the beta of course but it's expected...
// Fredrik
My team is having the same problem with .aspx files. Is there any way to turn of code analysis for all .aspx files, rather than one at a time via control-8?