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

Avoid extra copy in protostuff serialization #40

Closed
raffaeleguidi opened this issue Jan 14, 2011 · 1 comment
Closed

Avoid extra copy in protostuff serialization #40

raffaeleguidi opened this issue Jan 14, 2011 · 1 comment

Comments

@raffaeleguidi
Copy link
Owner

Looking at OffHeapStorage, the entire byte[] array that holds all the data is created everytime (extra copy) ... only to pass it to the deserializer.
That can be avoided using ProtostuffIOUtil.mergeFrom(byteBufferInputStream, buffer8k, pojo, schema) (to be added in the api).

Thanks to David Yu for the hint

@raffaeleguidi
Copy link
Owner Author

done switching to 1.0.1

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