Skip to content

marshal to bytes without copy #37

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

Closed
taowen opened this issue Jun 5, 2017 · 0 comments
Closed

marshal to bytes without copy #37

taowen opened this issue Jun 5, 2017 · 0 comments

Comments

@taowen
Copy link
Contributor

taowen commented Jun 5, 2017

  • make the buffer growable
  • expose internal buffer directly as return value

this should make the marshal to bytes same as the standard library. Right now it is allocating more memory than standard library.

@taowen taowen closed this as completed Jun 6, 2017
ernado added a commit to ernado/go that referenced this issue Jun 7, 2019
ernado added a commit to ernado/go that referenced this issue Jun 10, 2019
zhenzou pushed a commit to zhenzou/jsoniter that referenced this issue Feb 2, 2022
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

1 participant