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

MallocArray has redundant fields for 1D arrays #66

Open
zengmao opened this issue Dec 11, 2024 · 0 comments
Open

MallocArray has redundant fields for 1D arrays #66

zengmao opened this issue Dec 11, 2024 · 0 comments

Comments

@zengmao
Copy link

zengmao commented Dec 11, 2024

The length and size fields contain identical information for one-dimensional MallocArray's. This causes a memory overhead, especially when the user has a large number of short arrays. It would be desirable to have a specialized 1D version of MallocArray which holds only the pointer and the length field.

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