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

Implement faster trimming of control characters #289

Merged
merged 2 commits into from
Feb 9, 2025

Conversation

domenic
Copy link
Member

@domenic domenic commented Feb 9, 2025

Due to a V8 bug (https://issues.chromium.org/issues/42204424), negative end-of-string matches are slow, as shown in #286. We can avoid triggering this slowdown for certain inputs by just implementing the trimming using loops.

Closes #286. Closes #288 by superseding it.

Due to a V8 bug (https://issues.chromium.org/issues/42204424), negative end-of-string matches are slow, as shown in #286. We can avoid triggering this slowdown for certain inputs by just implementing the trimming using loops.

Closes #286. Closes #288 by superseding it.
@domenic domenic merged commit 834cef8 into main Feb 9, 2025
4 checks passed
@domenic domenic deleted the better-whitespace-removal branch February 9, 2025 07:50
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.

Bug Fix : Performance issues caused by imperfect regular term matching
1 participant