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

Make the memory layout of GcMem<T> more efficient #146

Open
liquidev opened this issue Feb 4, 2023 · 0 comments
Open

Make the memory layout of GcMem<T> more efficient #146

liquidev opened this issue Feb 4, 2023 · 0 comments

Comments

@liquidev
Copy link
Member

liquidev commented Feb 4, 2023

Currently it has quite a lot of redundancy:

  • The two Cell<bool> at the beginning of the struct could be moved to the bottom for more optimal alignment
  • The data_size field is only used for tracking how many bytes are allocated by the GC, but it's functionality is duplicated by the Layout field which also contains the size
@liquidev liquidev added this to the 0.8.1 milestone Feb 4, 2023
@liquidev liquidev removed this from the 0.8.1 milestone Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant