Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Add option to disable compiling regular expressions #1

Merged
merged 1 commit into from
Sep 10, 2014

Conversation

tetsuo13
Copy link
Contributor

@tetsuo13 tetsuo13 commented Sep 9, 2014

I've experienced IIS processes spinning out of control consuming memory and CPU when using compiled regular expressions in WCF services. This change leaves compiling regular expressions by default but adds the option to not compile them. Must be changed prior to any address parses.

AddressParser addressParser = new AddressParser();
addressParser.CompileRegex = false;
AddressParseResult parserResult = addressParser.ParseAddress(addressString);

@jamesrcounts
Copy link
Owner

Looks good, I'll pull this in soon and update nuget

@jamesrcounts jamesrcounts merged commit 8fe5eec into jamesrcounts:master Sep 10, 2014
@cwilby cwilby mentioned this pull request Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants