-
Regular Expression Performance
I have been using regular expressions for a while now, but I've never had to worry about performance until now.
I'm currently writing some classes that will scrape data from a message.
-The message is very large and has a tree-like structure similar to XML.
-I know the exact formatting and structure of the message. However, certain segments ("tags" if you're comparing it to XML) are optional and others can be repeated a certain number of times.
I wrote a regular expression that contains a group for each segment and subgroups for each branching segment. There's probably over 100 groups total. It will make sure that the correct data is scraped. However, performance issues have been brought to my attention.
Assuming that the regular expression will only be compiled once, will the massive number of groups and subgroups affect performance when using matcher.find()?
Similar Threads
-
By sunilbenjamin in forum ASP.NET
Replies: 2
Last Post: 09-29-2005, 02:09 AM
-
Replies: 9
Last Post: 06-08-2005, 12:12 AM
-
By Claudiu in forum Database
Replies: 1
Last Post: 02-05-2003, 07:50 AM
-
By eBiointel in forum .NET
Replies: 0
Last Post: 10-24-2002, 04:11 AM
-
By Patrick Ireland in forum .NET
Replies: 3
Last Post: 05-05-2001, 10:04 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks