Skip to content

Conversation

@fisker
Copy link
Contributor

@fisker fisker commented Apr 8, 2025

In #6, I found that using lastIndexOf is faster than looping characters one by one.

Now I found that using an regular expression is somehow super fast

perf link

@fisker fisker marked this pull request as ready for review April 8, 2025 15:08
@sindresorhus sindresorhus merged commit bf30e2e into sindresorhus:main Apr 8, 2025
2 checks passed
@fisker fisker deleted the perf-2 branch April 8, 2025 22:29
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