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

refactor: Combine Inline and Packed Variants #49

Merged
merged 11 commits into from
Feb 9, 2022

Conversation

ParkMyCar
Copy link
Owner

This PR refactors Repr to combine the Inline and Packed variants. Now a Repr only has two states, Heap and Inline. Our discriminant/metadata is moved to be the last bit, which enables us to inline 24 character strings (12 characters on 32-bit archs), regardless of whether or not the first character is ASCII

@ParkMyCar ParkMyCar merged commit c44320b into main Feb 9, 2022
@ParkMyCar ParkMyCar deleted the refactor/combine_inline_and_packed branch February 11, 2022 22:51
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