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

Optimize String.fromCharCode and String.fromCodePoint #391

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

chqrlie
Copy link
Collaborator

@chqrlie chqrlie commented Apr 20, 2024

  • test for common case: single integer argument and create string directly

This causes a small reduction of the test262 test time. (2%)

- test for common case: single integer argument and create string directly
Copy link
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@chqrlie chqrlie merged commit a77873d into quickjs-ng:master Apr 21, 2024
47 checks passed
@chqrlie chqrlie deleted the optimize-string-fromcharcode branch April 21, 2024 06:28
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.

3 participants