Skip to content

Changed to use static regex rather than rely on the regex cache#119

Merged
jbogard merged 1 commit intoHtmlTags:masterfrom
kendallb:feature/kendallb/regex-performance
Dec 28, 2020
Merged

Changed to use static regex rather than rely on the regex cache#119
jbogard merged 1 commit intoHtmlTags:masterfrom
kendallb:feature/kendallb/regex-performance

Conversation

@kendallb
Copy link
Copy Markdown
Contributor

Changed to use static regex rather than rely on the regex cache as these are used all the time, so eliminating the cache can be a big performance win for our code. Originally we moved all our regular expressions to be compiled, but during performance tuning found those to have significant thread locking issues causing performance degradation on our web site, so we removed that. I don't believe that has been improved recently.

Sorry it took me 6 years to get back around to this, but we have been using our own custom build of HtmlTags all these years, and we are trying to move to ASP.Net Core, so had to port this to .Net Standard so want to get back to using the official version again.

…e are used all the time, so eliminating the cache can be a big performance win for our code. Originally we moved all our regular expressions to be compiled, but during performance tuning found those to have significant thread locking issues causing performance degradation on our web site, so we removed that. I don't believe that has been improved recently.
@jbogard jbogard merged commit fda05d6 into HtmlTags:master Dec 28, 2020
@kendallb
Copy link
Copy Markdown
Contributor Author

Thank you Jimmy!

kendallb added a commit to kendallb/htmltags that referenced this pull request Oct 30, 2022
…performance

Changed to use static regex rather than rely on the regex cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants