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

perf: Use slice instead of replace #90

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

Lalem001
Copy link

@Lalem001 Lalem001 commented Feb 28, 2025

Description 📝

Slice is about 7% faster than replace when used against the string 800px.

Benched in Safari on an M2 Pro

@Lalem001 Lalem001 changed the base branch from main to staging February 28, 2025 17:53
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