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

Parse Protobuf messages as lazy bytestrings #119

Open
edsko opened this issue Mar 30, 2024 · 0 comments
Open

Parse Protobuf messages as lazy bytestrings #119

edsko opened this issue Mar 30, 2024 · 0 comments
Labels
enhancement New feature or request performance Performance related issues priority: low Minor enhancements

Comments

@edsko
Copy link
Collaborator

edsko commented Mar 30, 2024

We currently turn lazy bytestrings into strict bytestrings before parsing them; it would be nicer if we could avoid this step (these chunks are coming from the network layer, it should not be necessary to allocate a single contiguous chunk of memory to parse them). This is blocked on google/proto-lens#62 .

(Fixing this in proto-lens is non-trivial, because the first thing their parser does is turn the strict bytestring into a C pointer to the raw bytes and then proceed from there.)

@edsko edsko added enhancement New feature or request priority: low Minor enhancements performance Performance related issues labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance related issues priority: low Minor enhancements
Projects
None yet
Development

No branches or pull requests

1 participant