EgorBaranovEnjoysTyping commented on code in PR #13529:
URL: https://github.com/apache/ignite/pull/13529#discussion_r3947297196
##########
modules/core/src/main/java/org/apache/ignite/internal/direct/stream/DirectByteBufferStream.java:
##########
@@ -1362,7 +1368,7 @@ public boolean[] readBooleanArray() {
public String readString() {
byte[] arr = readByteArray();
- return arr != null ? new String(arr) : null;
+ return arr != null ? new String(arr, StandardCharsets.UTF_8) : null;
Review Comment:
In case of latin chars, this string will allocate more RAM (default
constructor will check whether this string is latin).
--
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]