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

feat: Implement small int types U4 and U2 #28

Merged
merged 8 commits into from
Feb 15, 2024

Conversation

MierenManz
Copy link
Collaborator

Implements U4 and U2 types

MierenManz and others added 8 commits January 9, 2024 11:51
Setting `Array.length` is not the correct way to allocate upfront. It seems fast but is not. `new Array(length)` is a lot faster
Allows v8 to determine all inserts are inbound which makes it skip bound checks (5% faster)
@eliassjogreen eliassjogreen changed the title Implement small int types U4 and U2 feat: Implement small int types U4 and U2 Feb 15, 2024
@eliassjogreen eliassjogreen merged commit f0bb6b5 into denosaurs:main Feb 15, 2024
2 checks passed
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