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: Optimize Tuple Read & Write #24

Merged
merged 2 commits into from
Jan 10, 2024
Merged

Conversation

MierenManz
Copy link
Collaborator

Tuple got the same patches as ArrayType<T>.
I also changed the methods so that they're the same impl now.
Writing got a extra check to see if the tuple you're writing is equal in length as the one you constructed it with to avoid possible issues.

Function Gain
ReadPacked +5.5x
Read +4.85x
WritePacked +0%
Write +0%

image

@load1n9 load1n9 requested a review from eliassjogreen January 10, 2024 07:34
@MierenManz MierenManz merged commit 3ece55a into denosaurs:main Jan 10, 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