Saturday, February 27, 2010

ReSharper 4.5 Memory Consumption – Hopefully The Last Post On This Subject

I posted in the past about the memory consumption of ReSharper 4.5 with large solutions containing C# but also many C++ projects with over one million line of codes. We installed at least one newer patch in the meantime and it seems that the memory consumption issue caused by the combination of IntelliSense and ReSharper has disappeared in that once IntelliSense has built it’s cache, memory consumption goes back to normal.

In other words the guys at JetBrains seem to have found something, so this issue is solved for the time being. Some of my team members have switch ReSharper back on since.

But there is more admittedly smaller things. One of them is that updating the namespace for a class removes comments from the source code if those comments happen to be in the “wrong” location. Example: Create a WCF library. It will generate a service as an example in that project. Then set the default namespace in the project file to a different value. Go back to the service files (interface and implementation) and use ReSharper to move the interface and the service to the new updated namespace. One comment will disappear in each file. The generated comment is not a big deal. But it could also be a comment that you wanted to keep, let’s say a URL with important background details of your implementation. This behavior is reproducible with version 4.5 and Visual Studio 2008. I haven’t checked the beta for version 5.0, though. Chances are that this has been fixed as well.

Don’t get me wrong: ReSharper is a tool that helps improving the productivity and quality of your code significantly. Despite a few nuisances in the product I use ReSharper on a daily basis. Whether you use this tool or a different one, there is no excuse for not refactoring your code mercilessly!

0 comments:

Post a Comment

All comments, questions and other feedback is much appreciated. Thank you!