Replies: 1 comment
-
Hi, @alphaqu int initialPos = buffer.position();
int newPos = serializer.encode(buffer.array(), initialPos, item);
buffer.position(newPos);
serializer.decode(buffer.array(), initialPos); As for mapped Additionally, if we would use var length encoding, it would translate into N byte-wise operations in a |
Beta Was this translation helpful? Give feedback.
-
Allowing for the use of a ByteBuffer opens up a ton of extreme optimizations on the user end. Like using a mapped ByteBuffer to read from a file at lightning speeds, Currently the serializer is very limited to a byte array, which is slow to create in many scenarios.
Beta Was this translation helpful? Give feedback.
All reactions