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

Storing the bumpalo buffer (or alternative) and reading back from it ? #598

Closed
ThomasCartier opened this issue Dec 9, 2024 · 1 comment

Comments

@ThomasCartier
Copy link

Hi,

I need to store the hashmap key/values on disk and retrieve it later, without reinserting everything.
new_in + bumpalo seem to make it for the allocation part, but I am not sure how it can read from this buffer again, once the hashmap has been deleted.
A kind of from_buffer would be handy.
Or maybe there is an existing solution I missed?

@Amanieu
Copy link
Member

Amanieu commented Dec 19, 2024

hashbrown doesn't guarantee a stable layout and is not suitable for on-disk storage. You may want to consider rkyv for this instead.

@Amanieu Amanieu closed this as completed Dec 19, 2024
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

2 participants