Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

This is from the BCL Team Blog:

Developers using System.Text.RegularExpressions.Regex with the RegexOptions.Compiled flag may notice performance degradation in their 2.0 apps when running on 64-Bit .NET Framework 2.0.

The performance problem occurs in the Regex(String pattern, RegexOptions options) constructor when instantiating very large, un-optimized regular expressions and while specifying the RegexOptions.Compiled flag

There is a hotfix available here, and the hotfix will be rolled into .NET Framework 2.0 SP 1.

The blog post also suggests some workarounds:

  • Reduce the Regular Expression Pattern

  • Use Regex Pre-Compilation Instead of Compiling-on-the-Fly

  • Remove the RegexOptions.Compiled Flag From Your Code

Posted on Friday, May 25, 2007 8:49 AM .NET Development | Back to top

Comments on this post: Slow Regex Performance on 64-Bit .NET Framework 2.0

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Chris J. Breisch | Powered by: