dan-ryan opened a new issue, #1900:
URL: https://github.com/apache/fury/issues/1900
### Question
I couldn't see this in the documentation, and maybe this library isn't
suited for what I want, but I thought I'd ask just in case.
I'm building an MMO and serializing mostly small chunks of data, but lots of
it. Benchmarking my code shows serialization is using a chunk of CPU, so I
wanted to see if Fury could improve my performance.
This is a small example of a byte[] that I'm sending to the client through
WebSockets:
```
try (var byteArrayOutputStream = new ByteArrayOutputStream(1024);
var dataOutputStream = new
DataOutputStream(byteArrayOutputStream)) {
dataOutputStream.writeByte(SerialisationMethod.Client.PlayerCharacter.ordinal());
// Method type (enum) as a byte
dataOutputStream.writeUTF(getId()); //GUID string
return byteArrayOutputStream.toByteArray();
} catch (IOException e) {
throw new RuntimeException(e);
}
```
Can someone give me an example of the best way to write this in Fury?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]