|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Regulare Expressions VERY SLOW in .NET 2.0We have a .NET 1.1 application that used many regular expressions to
see if small stings started with certin characters. When we ported this application to .NET 2.0 the regular expressions ran many times slower increasing our process time from 30 seconds in 1.1 to 30 minutes in 2.0. Has anyone else experienced this problem? first i've heard of this. For your regex expressions, you may want to turn
the compiled switch on for further optimizations. In fact, if you are doing a lot of regexing, you may benefit from declaring the regex object as a static variable with compilation on. -- Show quoteWarm Regards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Professional VSTO 2005 - Wrox/Wiley 2006 Blog: http://msmvps.com/blogs/Alvin/ ------------------------------------------------------- "jabbera" <jabb***@gmail.com> wrote in message news:1141831040.327788.98800@e56g2000cwe.googlegroups.com... > We have a .NET 1.1 application that used many regular expressions to > see if small stings started with certin characters. When we ported this > application to .NET 2.0 the regular expressions ran many times slower > increasing our process time from 30 seconds in 1.1 to 30 minutes in > 2.0. Has anyone else experienced this problem? > |
|||||||||||||||||||||||