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
ByteBuffer pooling and reuse #61
Comments
Agreed, sounds like a good feature. |
Good, especially if this library is described as "Memory Efficient Serialization Library" so adding this feature should be a core feature, I also plan to use it with Netty which use pooling also. |
why |
Just added such a constructor as part of the last commit. |
That is good, thank you, |
I see that you clear the Buffer before using it, what if the buffer contains other data? But i don't know if this is a possible scenario! |
the clear() call only resets the writable area, it doesn't actually clear |
I think there is another problem with direct buffers, they don't have array(), and the FlatBufferBuilder uses it a lot so it will cause a problem. |
ok, will add that. |
|
|
…location support LOCATION CHARACTER UI in distribution file
I want to use flatbuffers with a ByteBuffer pooler or reuse an existing ByteBuffer, so it will be nice if add a constructor to the FlatBufferBuilder that accepts a ByteBuffer as parameter.
The text was updated successfully, but these errors were encountered: