msgpack-java
msgpack-java copied to clipboard
adding a method writePayload(String src)
This new method copies the lower 8-bits of the characters. A separate writePayload(String src) method would be more performant because we're able to directly copy the bytes from the string to the right location in MessageBuffer. Introducing encoding in an attempt to re-use the existing writePayload(byte[] src) creates unnecessary overhead which in turn will affect performance.