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

support memory context for arrays #1623

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hugoArregui
Copy link

No description provided.

@nothings
Copy link
Owner

hash table had a context pointer because the hash table already has a lot of size overhead. however, the array size overhead is a lot smaller, so adding a context pointer to it adds a significant amount.

@hugoArregui
Copy link
Author

@nothings would this makes sense if I add a #ifdef STBDS_ARRAY_CUSTOM_CONTEXT and only include the pointer in the structure then? If you have another idea I can try it as well (I though this may be useful for you as well because of the TODO comment in the file)

@nothings
Copy link
Owner

Oh, I forgot about the todo. I guess it's ok then.

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.

None yet

2 participants