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

improve parser/printer low level implementation #72

Open
4 tasks
c-cube opened this issue Sep 13, 2019 · 0 comments
Open
4 tasks

improve parser/printer low level implementation #72

c-cube opened this issue Sep 13, 2019 · 0 comments

Comments

@c-cube
Copy link
Collaborator

c-cube commented Sep 13, 2019

  • printer:
    • avoid creating lots of strings
    • fewer calls to write
  • parser:
    • reuse a single bytes + offset + len, to avoid allocating
    • once prefix+len is read, the rest of a fixed-length token should be parsed with only one call (read exact number of bytes into pre-extended buffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant