Skip to content

Convert from pcre1 to pcre2 - #316

Open
atn1990 wants to merge 5 commits into
Edgio:masterfrom
atn1990:atn-pcre2
Open

Convert from pcre1 to pcre2#316
atn1990 wants to merge 5 commits into
Edgio:masterfrom
atn1990:atn-pcre2

Conversation

@atn1990

@atn1990 atn1990 commented Jan 12, 2024

Copy link
Copy Markdown
Contributor

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

}
uint64_t l_dt_s;
l_dt_s = ns_waflz::get_delta_time_ms(l_t_s);
REQUIRE(l_dt_s < 200);

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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

atn1990 commented Jan 12, 2024

Copy link
Copy Markdown
Contributor Author

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