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

Avoid double pointer indirection for strings #41

Open
p7g opened this issue Apr 26, 2021 · 0 comments
Open

Avoid double pointer indirection for strings #41

p7g opened this issue Apr 26, 2021 · 0 comments

Comments

@p7g
Copy link
Owner

p7g commented Apr 26, 2021

Right now a string consists of 2 structs: One with a GC header, and one which holds a pointer to the actual string. Both are heap allocated, and the former holds a pointer to the latter. It seems wasteful to have both since an object can have arbitrary size anyway.

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

No branches or pull requests

1 participant