-
Notifications
You must be signed in to change notification settings - Fork 6
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
Encode
methods should accept []byte
#21
Labels
code/perf
Performance improvements
Comments
9 tasks
9 tasks
9 tasks
9 tasks
9 tasks
9 tasks
Encode
methods should accept []byte
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Document.Encode
andArray.Encode
should accept a byte slice, not return it. Since the caller always knows the needed slice length (by callingsize
), this could allow for optimizing allocations by using memory pools, etc.Run benchmarks before and after, and show
benchstat
output.The text was updated successfully, but these errors were encountered: