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

Use numpy string dtype to get accurate memory usage #307

Open
jeromekelleher opened this issue Jan 17, 2025 · 0 comments
Open

Use numpy string dtype to get accurate memory usage #307

jeromekelleher opened this issue Jan 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jeromekelleher
Copy link
Contributor

We're currently using object dtypes in the BufferedArray class when dealing with string input and this gives us inaccurate numbers when we look at the array nbytes. To allow us understand where memory is being used (and perhaps use it better) we should switch to the new numpy StringDtype which should help.

So, at least we're buffering the data in an efficient format, and ideally this is basically what Zarr will use ultimately as well.

@jeromekelleher jeromekelleher added the enhancement New feature or request label Jan 17, 2025
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