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

Use strcspn() to optimize dom_html5_escape_string() #12948

Merged
merged 2 commits into from
Dec 16, 2023

Conversation

nielsdos
Copy link
Member

This routine implemented by libc uses a faster algorithm than the old naive byte-per-byte approach here. It also is often optimized using SIMD.

This routine implemented by libc uses a faster algorithm than the old
naive byte-per-byte approach here. It also is often optimized using
SIMD.
@nielsdos nielsdos merged commit 0870da3 into php:master Dec 16, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants