Article ID: 970924 - Last Review: July 28, 2009 - Revision: 1.0 FIX: The performance of applications that use the CreateType method decrease as you add more type objects to a dynamic assembly module in the .NET Framework 2.0 SP2SYMPTOMSConsider the following scenario:
CAUSEThe decrease in performance is caused by the following issues:
RESOLUTIONA supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem. To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.PrerequisitesYou must have .NET 2.0 Framework Service Pack 2 (SP2) installed to apply this hotfix.Restart requirementYou don't have to restart the computer after you install the hotfix if no relatvie instance is in use.Hotfix replacement informationThis hotfix does not replace any other hotfixes.File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.x86 version for Windows 2000, Windows 2003, Windows XPCollapse this table
x64 version for Windows 2000, Windows 2003, Windows XPCollapse this table
Itanium-based version for Windows 2000, Windows 2003, Windows XPCollapse this table
x86 version for Windows Vista SP2,Windows Server Core SP2 and Windows Server 2008 SP2Collapse this table
x64 version for Windows Vista SP2,Windows Server Core SP2 and Windows Server 2008 SP2Collapse this table
Itanium-based version for Windows Server Core SP2 and Windows Server 2008 SP2Collapse this table
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONThe hotfix postpones the symbol flushing in the TypeBuilder.CreateType method when the dynamic assembly does not have to be run immediately. Also, the hotfix changes the implementation of the stream symbols to use an O(n) algorithm to write n bytes of symbols. This implementation change is applied to all the AssemblyBuilderAccess modes. After you install the hotfix, the performance will improve significantly. However, the memory usage will also be increased.
| Article Translations
|
Back to the top
