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: Sized compound types #38

Merged
merged 8 commits into from
Jul 12, 2024

Conversation

MierenManz
Copy link
Collaborator

This adds SizedArray<T> and SizedStruct<T>. SizedStruct<T> get's a optimized read / write function when being created which means it is about twice as fast as Struct in read operations where all types have a static size at the time of construction.

SizedArray<T> is a special addition. It has no optimizations itself but allows the SizedStruct<T> optimization to work for arrays inside of Struct

@MierenManz MierenManz requested a review from eliassjogreen July 11, 2024 09:45
@MierenManz MierenManz requested a review from load1n9 July 11, 2024 09:53
Copy link
Member

@load1n9 load1n9 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@eliassjogreen eliassjogreen left a comment

Choose a reason for hiding this comment

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

This looks great! Thanks!

@eliassjogreen eliassjogreen changed the title Sized compound types feat: Sized compound types Jul 12, 2024
@eliassjogreen eliassjogreen merged commit f7952bd into denosaurs:main Jul 12, 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.

3 participants