Friday, March 21, 2008

Visual Basic 2008 Hotfix to fix slow IDE performance/response time after building a Project with lots of XML Comments (either user or designer generated)

Microsoft Support - FIX: You may experience performance issues in the IDE after you use Visual Studio 2008 to build a Visual Basic project

"...

SYMPTOMS

Consider the following scenario:

  • You use Microsoft Visual Studio 2008 to build a Microsoft Visual Basic project.
  • The Visual Basic project contains many XML comments in a single file.
  • The file is probably a designer-generated file for a dataset or for a Web reference.

In this scenario, you may experience the following performance issues in the IDE:

  • The IDE takes a long time to build the solution and to rebuild the solution.
  • You experience a slow response time when you press F5 to start debugging.
  • You experience a slow response time in the Code Editor.
  • You experience a slow response time in IntelliSense.

CAUSE

This problem occurs because of how the Visual Studio 2008 compiler processes large files that contain XML documentation.

RESOLUTION

Download information
The following file is available for download from the Microsoft Download Center:
Download the 338762_ENU_i386_zip.exe package now.
...

WORKAROUND

To work around this problem, use one of the following methods.

Method 1: Disable XML comment generation
...
Method 2: Remove the XML comments
...
Method 3: Create a separate project to store the file that has the XML comments
..."

Hum... This might come in handy.

Usual hotfix disclaimers apply (i.e. don't apply it unless you know you need to, etc).

(via MSDN Code Gallery - KB946344 - Slow build time for Visual Basic Projects in Visual Studio 2008 IDE)

No comments: