Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Reduce allocations during decoding #3

Closed
eulerfx opened this issue Jan 19, 2016 · 1 comment
Closed

Reduce allocations during decoding #3

eulerfx opened this issue Jan 19, 2016 · 1 comment

Comments

@eulerfx
Copy link
Contributor

eulerfx commented Jan 19, 2016

Currently, decoding of individual fields returns a tuple corresponding to the value and the new state of the read buffer. Since tuples are heap-allocated (for now), this incurs a notable GC cost. The recourse is to create a purpose built struct to contain the pair.

@eulerfx
Copy link
Contributor Author

eulerfx commented Apr 6, 2017

Addressed in #121

@eulerfx eulerfx closed this as completed Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants