-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert from pcre1 to pcre2 #316
base: master
Are you sure you want to change the base?
Conversation
Merge os master
* Convert from pcre1 to pcre2 * comments * README
@@ -62,6 +62,6 @@ TEST_CASE( "pcre obj test", "[regex]" ) { | |||
} | |||
uint64_t l_dt_s; | |||
l_dt_s = ns_waflz::get_delta_time_ms(l_t_s); | |||
REQUIRE(l_dt_s < 200); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So pcre2 is slow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote a benchmark where I use the regexes from the OWASP rules and and it is 2-3x times faster than pcre1 but for this test it is slower
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you have the benchmark tests handy? That sounds promising.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a repo here: https://github.com/atn1990/compare-regex
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atn1990 @MichaelClayMoore and I are working on this. We'll update you soon
Can anyone help debug the failing test on MacOS? It says there are symbols not found in the std namespace so I don't see how that is caused by this PR. |
Converted the library to use pcre2 from pcre1 using various sources on the internet and the official documentation