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

Update RegexRepository.php to use the PCRE modifier 'S' #44

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

Magentron
Copy link
Contributor

This should speed up sanitization according to https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php

@yordadev
Copy link
Member

👏 This looks good to me, want to test it on my end.

It would be interesting to see what the actual performance increase is before and after.

@yordadev
Copy link
Member

yordadev commented Nov 6, 2023

Pretty cool actually saw a difference. Looks to be anywhere between 8-12% increase in performance when processing messages.. Nice work on this update. 💪🏼 🔥

@yordadev yordadev self-requested a review November 6, 2023 23:41
@yordadev yordadev merged commit 4231686 into YorCreative:main Nov 6, 2023
5 checks passed
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