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

refactor: replace fastStartsWith & fastStartsWithFrom #4518

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SukkaW
Copy link

@SukkaW SukkaW commented Dec 11, 2024

Fixes #4517.

Per benchmarks mentioned in the issue, fastStartsWith & fastStartsWithFrom are consistently slower on modern Chrome and modern Firefox (up to 0.5x to 1x slower).

All tests and lints passed locally on my machine.

@seia-soto
Copy link
Member

Hi @SukkaW ,

Thanks for the contribution. We're measuring the actual speed difference in multiple platforms to be sure. Once we're ready, we'll merge it.

Best

@seia-soto seia-soto added the PR: Performance 🏃‍♀️ Increment minor version when merged label Dec 12, 2024
@seia-soto seia-soto self-requested a review December 12, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Performance 🏃‍♀️ Increment minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fastStartsWith is no longer faster than the native String.prototype.startsWith
2 participants