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

7-bit refcount might not be enough for large allocations #94

Open
hygoni opened this issue Feb 29, 2024 · 0 comments
Open

7-bit refcount might not be enough for large allocations #94

hygoni opened this issue Feb 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@hygoni
Copy link
Owner

hygoni commented Feb 29, 2024

For now we use only 7-bit for reference counting.

While I think it is uncommon for small objects to have more than 127 reference count, it might not be enough for larger objects, think about a case where the program allocates, very large array, and increasing the reference count of each element using pointers.

Most importantly, whether we decide to increase it or not doesn't matter, but we need to know how often it's not enough.

Any thoughts?

@hygoni hygoni added the enhancement New feature or request label Feb 29, 2024
@hygoni hygoni changed the title 7-bit refcount might not be enough for large objects 7-bit refcount might not be enough for large allocations Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant