hazelcast-go-client icon indicating copy to clipboard operation
hazelcast-go-client copied to clipboard

clientMessageReader copies data twice

Open sancar opened this issue 3 years ago • 0 comments

We should directly copy from the receiving buffer to client message ones. The second copy is unnecessary. See the java implementation.

https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/client/impl/protocol/util/ClientMessageEncoder.java

https://github.com/hazelcast/hazelcast/blob/master/hazelcast/src/main/java/com/hazelcast/client/impl/clientside/ClientMessageDecoder.java

sancar avatar Oct 20 '21 13:10 sancar