22 Replies Last post: Feb 23, 2010 11:58 AM by Kod Exe  
Andrew Alm Novice 117 posts since
Jul 22, 2005
Currently Being Moderated

Jan 8, 2010 4:11 AM

Find Usages is slow in v5 beta

I recently installed the beta version of ReSharper (version 5), and I noticed

that the find usages command is much slower in this version than it has been

in version 4.  I have a pretty pretty large web site project in my solution,

and when I did a find usages on a method of a class in a referenced .csproj

file, it took a few minutes to find them all.  This used to take only a couple

seconds for the same search in version 4.  Have there been some architectural

changes that have caused this slow down, and is there any plans to address

this?  I am using VS 2008.

 

~Andy

 

 

 

Alexander Nesterenko Newbie 73 posts since
Oct 20, 2009
Currently Being Moderated
Jan 8, 2010 12:04 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andy,

 

Do you use MVC?

Do you have resx files and how much in the web project?

 

 

Best regards,

Alexander Nesterenko

ReSharper developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

 

 

Andrey Serebryansky JetBrains 2,739 posts since
Jan 12, 2005
Currently Being Moderated
Jan 18, 2010 3:13 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andrew

     We're currently investigating the problems with Find Usages performance. Could you please follow the instructions at http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Performance+Profiling+Instructions to gather some performance snapshots of this problem and send them to andrew dot serebryansky at jetbrains dot com? This would really help us to track the problem down. Thank you!

 

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jan 19, 2010 11:52 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andy,

 

Could you please upload it to ftp.intellij.net/.uploads ? Thanks a lot!

 

Sincerely,

Ilya Ryzhenkov

 

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

 

AA> Hello Andrey,

AA>

AA> I followed the instructions and I have a dtc snapshot file.

AA> However, it is 3.25 GB in size, which is too large for me to email

AA> to you.  Is there some other location I can upload it to?  It also

AA> seems like it is too large for me to open in dotTrace (it says I do

AA> not have enough memory...I have 4GB)

AA>

AA> I made sure to not start the profile until after the solution has

AA> completely loaded.  I simply started the profile, did a find usages

AA> on a class in the solution.  It took about 5 minutes or so, then as

AA> soon as it was done, I got the snapshot.  During the find usages, it

AA> seemed to be looking in a number of .cs, .ascx, .aspx, .master,

AA> .resx, and .xml files in the solution based on the status message

AA> above the progress bar.  Its like it doesn't have an index of class

AA> references like it did in previous versions of ReSharper.

AA>

AA> Please let me know if I can upload tha file for you, or if there is

AA> something further I can do to help.

AA>

AA> ~Andy

AA>

>> Hello Andrew

>> We're currently investigating the problems with Find Usages

>> performance. Could you please follow the instructions at

>> http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Perfo

>> r

>> manceProfilingInstructions to gather some performance snapshots of

>> this problem and send them to andrew dot serebryansky at jetbrains

>> dot

>> com? This would really help us to track the problem down. Thank you!

>> Andrey Serebryansky

>> Support Engineer

>> JetBrains, Inc

>> http://www.jetbrains.com

>> "Develop with pleasure!"

>> ---

>> Original message URL:

>> http://www.jetbrains.net/devnet/message/5254483#5254483

 

 

 

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jan 20, 2010 12:13 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andy,

 

It looks like it failed to download it first time and retried. Resharper5_FindUsagesSlow.dtc

file is there on FTP of 1Gb size. I've erased it.

 

Sincerely,

Ilya Ryzhenkov

 

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

 

AA> Hello Ilya,

AA>

AA> I tried to upload it to that server, and after going for a few hours

AA> I came back and it said it had failed.  Here is the FTP log:

AA>

AA> Command:     PASV

AA> Response:     227 Entering Passive Mode (213,182,181,98,205,98).

AA> Command:     STOR Resharper5_FindUsagesSlow.dtc

AA> Response:     550 Resharper5_FindUsagesSlow.dtc: Overwrite permission

AA> denied

AA> Do I need a special account to upload to this location?  I wis using

AA> FileZilla to do the upload.  Any help is appreciated.

AA>

AA> ~Andy

AA>

>> Hello Andy,

>>

>> Could you please upload it to ftp.intellij.net/.uploads ? Thanks a

>> lot!

>>

>> Sincerely,

>> Ilya Ryzhenkov

>> JetBrains, Inc

>> http://www.jetbrains.com

>> "Develop with pleasure!"

AA>>> Hello Andrey,

AA>>>

AA>>> I followed the instructions and I have a dtc snapshot file.

AA>>> However, it is 3.25 GB in size, which is too large for me to email

AA>>> to you.  Is there some other location I can upload it to?  It also

AA>>> seems like it is too large for me to open in dotTrace (it says I

AA>>> do not have enough memory...I have 4GB)

AA>>>

AA>>> I made sure to not start the profile until after the solution has

AA>>> completely loaded.  I simply started the profile, did a find

AA>>> usages on a class in the solution.  It took about 5 minutes or so,

AA>>> then as soon as it was done, I got the snapshot.  During the find

AA>>> usages, it seemed to be looking in a number of .cs, .ascx, .aspx,

AA>>> .master, .resx, and .xml files in the solution based on the status

AA>>> message above the progress bar.  Its like it doesn't have an index

AA>>> of class references like it did in previous versions of ReSharper.

AA>>>

AA>>> Please let me know if I can upload tha file for you, or if there

AA>>> is something further I can do to help.

AA>>>

AA>>> ~Andy

AA>>>

>>>> Hello Andrew

>>>> We're currently investigating the problems with Find Usages

>>>> performance. Could you please follow the instructions at

>>>> http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Per

>>>> f

>>>> o

>>>> r

>>>> manceProfilingInstructions to gather some performance snapshots

>>>> of

>>>> this problem and send them to andrew dot serebryansky at jetbrains

>>>> dot

>>>> com? This would really help us to track the problem down. Thank

>>>> you!

>>>> Andrey Serebryansky

>>>> Support Engineer

>>>> JetBrains, Inc

>>>> http://www.jetbrains.com

>>>> "Develop with pleasure!"

>>>> ---

>>>> Original message URL:

>>>> http://www.jetbrains.net/devnet/message/5254483#5254483

 

 

 

Kod Exe Newbie 12 posts since
Jan 8, 2010
Currently Being Moderated
Jan 25, 2010 10:00 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

andyalm wrote:

 

Did you get my snapshot?  Was it helpful?  Is there a bug/ticket number for

this issue that I can use to track its progress?

 

I was wondering the same thing.

 

Andy, please remove the hundreds of lines of quoted text that are in every message you post. You're making it very hard to follow the thread.

Serge Baltic JetBrains 881 posts since
Oct 4, 2004
Currently Being Moderated
Jan 26, 2010 2:10 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello,

 

I'm sorry my messages were causing you pain.  I am using Jetbrains

Omea Newsreader and was just using the default settings that include

the thread contents at the bottom of the message.

 

In email, previous messages would usually be included at the bottom, for

the context. In News (NNTP), this is not necessary, because the whole thread

of messages is always available for review. Usually just a line or two of

text is quoted to give a hint on what you're replying to. Of course the tool

does not know which quoted lines you're going to use in your reply, that's

why Omea would initially present you with the complete quote. Overquoting

isn't considered a good practice.

 

It actually looks

quite nice in Omea, but I guess that doesn't transfer well to other

tools.

 

On the Web mirror this is formatted nicely too, but makes it harder to read

the thread in a row if the original content is duplicated every time.

 

I'll try to remember to remove all but the most recent

conversation from the thread if that helps you out.

 

Bottom-quoting the whole message is of no much use as well. If you're replying

to the message in the whole, just the reply text would be OK. Maybe a couple

lines from the previous message as a highlight.

 

Serge Baltic

JetBrains, Inc — http://www.jetbrains.com

“Develop with pleasure!”

 

 

 

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jan 26, 2010 12:22 AM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andy,

 

Oh, sorry, I didn't respond here. I've got snapshot, but it is huge for dotTrace

3.1 to open it directly. I've asked our dotTrace developers to help me open

it. Didn't see the traces yet

 

Sincerely,

Ilya Ryzhenkov

 

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

 

AA> Did you get my snapshot?  Was it helpful?  Is there a bug/ticket

AA> number for this issue that I can use to track its progress?

AA>

AA> Thanks,

AA>

AA> ~Andy

AA>

>> Hello Ilya,

>>

>> Good idea to compress it first (I should have thought of that).  I

>> compressed it to a .7z file and uploaded it to the .uploads

>> directory. It succeeded this time.  The name of the file is

>> ReSharper5_FindUsagesSlow.7z.

>>

>> Let me know if I can be of further assistence.

>>

>> ~Andy

>>

>>> Hello Andy,

>>>

>>> It looks like it failed to download it first time and retried.

>>> Resharper5_FindUsagesSlow.dtc file is there on FTP of 1Gb size. I've

>>> erased it.

>>>

>>> Sincerely,

>>> Ilya Ryzhenkov

>>> JetBrains, Inc

>>> http://www.jetbrains.com

>>> "Develop with pleasure!"

AA>>>> Hello Ilya,

AA>>>>

AA>>>> I tried to upload it to that server, and after going for a few

AA>>>> hours I came back and it said it had failed.  Here is the FTP

AA>>>> log:

AA>>>>

AA>>>> Command:     PASV

AA>>>> Response:     227 Entering Passive Mode (213,182,181,98,205,98).

AA>>>> Command:     STOR Resharper5_FindUsagesSlow.dtc

AA>>>> Response:     550 Resharper5_FindUsagesSlow.dtc: Overwrite permission

AA>>>> denied

AA>>>> Do I need a special account to upload to this location?  I wis

AA>>>> using

AA>>>> FileZilla to do the upload.  Any help is appreciated.

AA>>>> ~Andy

>>>>> Hello Andy,

>>>>>

>>>>> Could you please upload it to ftp.intellij.net/.uploads ? Thanks a

>>>>> lot!

>>>>>

>>>>> Sincerely,

>>>>> Ilya Ryzhenkov

>>>>> JetBrains, Inc

>>>>> http://www.jetbrains.com

>>>>> "Develop with pleasure!"

AA>>>>>> Hello Andrey,

AA>>>>>>

AA>>>>>> I followed the instructions and I have a dtc snapshot file.

AA>>>>>> However, it is 3.25 GB in size, which is too large for me to

AA>>>>>> email to you.  Is there some other location I can upload it to?

AA>>>>>> It also seems like it is too large for me to open in dotTrace

AA>>>>>> (it says I do not have enough memory...I have 4GB)

AA>>>>>>

AA>>>>>> I made sure to not start the profile until after the solution

AA>>>>>> has completely loaded.  I simply started the profile, did a

AA>>>>>> find usages on a class in the solution.  It took about 5

AA>>>>>> minutes or so, then as soon as it was done, I got the snapshot.

AA>>>>>> During the find usages, it seemed to be looking in a number of

AA>>>>>> .cs, .ascx, .aspx, .master, .resx, and .xml files in the

AA>>>>>> solution based on the status message above the progress bar.

AA>>>>>> Its like it doesn't have an index of class references like it

AA>>>>>> did in previous versions of ReSharper.

AA>>>>>>

AA>>>>>> Please let me know if I can upload tha file for you, or if

AA>>>>>> there is something further I can do to help.

AA>>>>>>

AA>>>>>> ~Andy

AA>>>>>>

>>>>>>> Hello Andrew

>>>>>>> We're currently investigating the problems with Find Usages

>>>>>>> performance. Could you please follow the instructions at

>>>>>>> http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+

>>>>>>> P

>>>>>>> e

>>>>>>> r

>>>>>>> f

>>>>>>> o

>>>>>>> r

>>>>>>> manceProfilingInstructions to gather some performance

>>>>>>> snapshots

>>>>>>> of

>>>>>>> this problem and send them to andrew dot serebryansky at

>>>>>>> jetbrains

>>>>>>> dot

>>>>>>> com? This would really help us to track the problem down. Thank

>>>>>>> you!

>>>>>>> Andrey Serebryansky

>>>>>>> Support Engineer

>>>>>>> JetBrains, Inc

>>>>>>> http://www.jetbrains.com

>>>>>>> "Develop with pleasure!"

>>>>>>> ---

>>>>>>> Original message URL:

>>>>>>> http://www.jetbrains.net/devnet/message/5254483#5254483

 

 

 

Kod Exe Newbie 12 posts since
Jan 8, 2010
Currently Being Moderated
Jan 27, 2010 1:37 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

andyalm wrote:

 

Would it still be useful if I did the profiling using the sampling profiling

instead of the tracing profiling?

 

Any progress on the actual problem? Would it help to install a new nightly build? Find usages on a method is still traversing every file in the solution (.cs, .aspx, .Master, ...) even with solution-wide analysis enabled.

Ilya Ryzhenkov JetBrains 2,694 posts since
Apr 13, 2004
Currently Being Moderated
Jan 20, 2010 12:14 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

Hello Andy,

 

Also, does it help to compress the file?

 

Sincerely,

Ilya Ryzhenkov

 

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

 

AA> Hello Ilya,

AA>

AA> I tried to upload it to that server, and after going for a few hours

AA> I came back and it said it had failed.  Here is the FTP log:

AA>

AA> Command:     PASV

AA> Response:     227 Entering Passive Mode (213,182,181,98,205,98).

AA> Command:     STOR Resharper5_FindUsagesSlow.dtc

AA> Response:     550 Resharper5_FindUsagesSlow.dtc: Overwrite permission

AA> denied

AA> Do I need a special account to upload to this location?  I wis using

AA> FileZilla to do the upload.  Any help is appreciated.

AA>

AA> ~Andy

AA>

>> Hello Andy,

>>

>> Could you please upload it to ftp.intellij.net/.uploads ? Thanks a

>> lot!

>>

>> Sincerely,

>> Ilya Ryzhenkov

>> JetBrains, Inc

>> http://www.jetbrains.com

>> "Develop with pleasure!"

AA>>> Hello Andrey,

AA>>>

AA>>> I followed the instructions and I have a dtc snapshot file.

AA>>> However, it is 3.25 GB in size, which is too large for me to email

AA>>> to you.  Is there some other location I can upload it to?  It also

AA>>> seems like it is too large for me to open in dotTrace (it says I

AA>>> do not have enough memory...I have 4GB)

AA>>>

AA>>> I made sure to not start the profile until after the solution has

AA>>> completely loaded.  I simply started the profile, did a find

AA>>> usages on a class in the solution.  It took about 5 minutes or so,

AA>>> then as soon as it was done, I got the snapshot.  During the find

AA>>> usages, it seemed to be looking in a number of .cs, .ascx, .aspx,

AA>>> .master, .resx, and .xml files in the solution based on the status

AA>>> message above the progress bar.  Its like it doesn't have an index

AA>>> of class references like it did in previous versions of ReSharper.

AA>>>

AA>>> Please let me know if I can upload tha file for you, or if there

AA>>> is something further I can do to help.

AA>>>

AA>>> ~Andy

AA>>>

>>>> Hello Andrew

>>>> We're currently investigating the problems with Find Usages

>>>> performance. Could you please follow the instructions at

>>>> http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Per

>>>> f

>>>> o

>>>> r

>>>> manceProfilingInstructions to gather some performance snapshots

>>>> of

>>>> this problem and send them to andrew dot serebryansky at jetbrains

>>>> dot

>>>> com? This would really help us to track the problem down. Thank

>>>> you!

>>>> Andrey Serebryansky

>>>> Support Engineer

>>>> JetBrains, Inc

>>>> http://www.jetbrains.com

>>>> "Develop with pleasure!"

>>>> ---

>>>> Original message URL:

>>>> http://www.jetbrains.net/devnet/message/5254483#5254483

 

 

 

Kod Exe Newbie 12 posts since
Jan 8, 2010
Currently Being Moderated
Jan 20, 2010 5:43 PM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

andyalm wrote:

 

I recently installed the beta version of ReSharper (version 5), and I noticed

that the find usages command is much slower in this version than it has been

in version 4.

 

We have exactly the same problem. The difference doesn't seem to be that it's slower per se, but rather that in v4.5 it used cached symbol data, whereas in v5 it does a live search in the files in the solution. In the progress bar you can clearly see .cs files flashing by, not just resource files and HTML files.

 

"Find usages" is almost unusably slow in our ASP.NET MVC 1 project, which has ~10 resource files and ~100 views. But the views and resource files don't seem to be the problem.

Andrey Serebryansky JetBrains 2,739 posts since
Jan 12, 2005
Currently Being Moderated
Jan 21, 2010 1:39 PM in response to: Kod Exe
Re: Find Usages is slow in v5 beta

Hello Kod

     Could you please follow the instructions athttp://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Performance+Profiling+Instructions to gather some performance snapshots of this problem and send them to andrew dot serebryansky at jetbrains dot com or upload it to ftp://ftp.intellij.net/.uploads/? Thank you!

 

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

Kod Exe Newbie 12 posts since
Jan 8, 2010
Currently Being Moderated
Jan 22, 2010 10:38 AM in response to: Andrey Serebryansky
Re: Find Usages is slow in v5 beta

marcus23 wrote:

 

Could you please (...) gather some performance snapshots of this problem

 

 

I'll try!

 

But I don't see how performance is the problem. In v4.5, it doesn't fastly go through all files in the solution to Find Usages - it doesn't go through all files in the solution at all.

 

EDIT: The file is on your FTP now. 28 minutes in v5EAP, ~3 seconds in v4.5. Same solution; MVC1 with ~10 resx and ~100 as?x.

Kod Exe Newbie 12 posts since
Jan 8, 2010
Currently Being Moderated
Feb 23, 2010 11:58 AM in response to: Andrew Alm
Re: Find Usages is slow in v5 beta

andyalm wrote:

 

I recently installed the beta version of ReSharper (version 5), and I noticed

that the find usages command is much slower in this version than it has been

in version 4.

 

This is still broken in Beta 2. Using Visual 2008 with an ASP.NET MVC solution, Find Usages still takes 10-20 minutes to run, since it still searches every file in the solution (including files that would not typically contain usages) for usages. (And no, I won't send any more profiling reports.)

More Like This

  • Retrieving data ...