mkaravel commented on code in PR #47771:
URL: https://github.com/apache/spark/pull/47771#discussion_r1729645832


##########
common/unsafe/src/main/java/org/apache/spark/unsafe/UTF8StringBuilder.java:
##########
@@ -93,7 +93,38 @@ public void appendBytes(Object base, long offset, int 
length) {
     cursor += length;
   }
 
+  public void appendByte(byte singleByte) {

Review Comment:
   > For the second part, if i understood correctly, you proposed to make four 
new methods, where they respectively take 1,2,3,4 bytes that we want to append 
as parameters?
   
   Yes, this was the proposal. A completely different alternative it to discard 
the `appendByte` method altogether and put the actual code inline inside 
`appendCodePoint`.



-- 
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]

Reply via email to