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

Implement ones method for JS integer types #974

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Implement ones method for JS integer types #974

merged 2 commits into from
Nov 21, 2024

Conversation

dfellis
Copy link
Member

@dfellis dfellis commented Nov 21, 2024

No description provided.

@dfellis dfellis self-assigned this Nov 21, 2024
@dfellis
Copy link
Member Author

dfellis commented Nov 21, 2024

I thought of another way to implement this function after I pushed this. Decided to give it a benchmark, and it's more than twice as fast, so going to switch things up.

Screenshot From 2024-11-21 15-02-38

@dfellis
Copy link
Member Author

dfellis commented Nov 21, 2024

Well, that implementation didn't quite work, because I wasn't mutating the original value. With that fixed it's still faster, but not quite as much.

Screenshot From 2024-11-21 15-08-25

@dfellis dfellis merged commit 0ead26b into main Nov 21, 2024
13 checks passed
@dfellis dfellis deleted the js-ones branch November 21, 2024 21:41
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.

1 participant