Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

Regulare Expressions VERY SLOW in .NET 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jabbera - 08 Mar 2006 15:17 GMT
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?
Alvin Bruney - ASP.NET MVP - 08 Mar 2006 15:53 GMT
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.

Signature

Warm 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/
-------------------------------------------------------

> 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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.