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

Memory allocation and GC #76

Open
ebfhub opened this issue Feb 2, 2020 · 2 comments
Open

Memory allocation and GC #76

ebfhub opened this issue Feb 2, 2020 · 2 comments

Comments

@ebfhub
Copy link

ebfhub commented Feb 2, 2020

The generated code (and support code) seems to allocate memory on use.
This is fine in many cases, but if you want to use this in certain applications, memory allocation needs to be kept to a minimum (e.g. low latency, processing market data).
With some changes, adding a reset to the builder, and returning cached builder objects, this should be achievable. On the decoding side this would also be necessary.

This has been achieved with SBE, and Jackson's CBOR (except for strings).

@dwrensha
Copy link
Member

dwrensha commented Feb 2, 2020

I agree. There's probably significant room for optimization in this direction.

Ideally we could add such optimized interfaces without making things more difficult for users who prefer having an easier-to-use interface over squeezing every drop of performance.

@paxel
Copy link
Contributor

paxel commented Feb 2, 2020 via email

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

3 participants