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

Factor out use of indexOf (528) #4

Merged
merged 2 commits into from Feb 18, 2022
Merged

Factor out use of indexOf (528) #4

merged 2 commits into from Feb 18, 2022

Conversation

mcpower
Copy link
Contributor

@mcpower mcpower commented Feb 18, 2022

a770bbe "factored out" charCodeAt and substring, saving some bytes. However, it also slightly slowed down parsing, too.

These two commits do the same for indexOf and the length assignment. This saves 27 bytes... and also slightly slows down parsing, like the aforementioned commit.

@samthor samthor merged commit 0289d93 into samthor:main Feb 18, 2022
@mcpower mcpower deleted the tradeoffs branch February 19, 2022 02:13
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.

None yet

2 participants