Skip to content
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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

atn1990
Copy link
Contributor

@atn1990 atn1990 commented Jan 12, 2024

Converted the library to use pcre2 from pcre1 using various sources on the internet and the official documentation

@@ -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);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So pcre2 is slow?

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

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

@atn1990
Copy link
Contributor Author

atn1990 commented Jan 12, 2024

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.

@atn1990 atn1990 requested a review from dev0z January 16, 2024 17:46
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.

3 participants