Skip to content

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

}
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