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

Reusing storage allocated by from_slice #152

Open
JosiahWhite opened this issue Jan 16, 2025 · 2 comments
Open

Reusing storage allocated by from_slice #152

JosiahWhite opened this issue Jan 16, 2025 · 2 comments

Comments

@JosiahWhite
Copy link

I am using this library in a project that needs to deserialize many small json messages and it's working great so thanks for that.

One goal I have is to remove allocations within the critical path, but it appears this library API does not allow me to reuse the scratch space or bump allocator that is used for each parsing call to from_slice. Is this accurate or did I miss something in the documentation?

@liuq19
Copy link
Collaborator

liuq19 commented Jan 17, 2025

could not reuse bump allocator and buffer now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants
@JosiahWhite @liuq19 and others