Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19180#discussion_r138989046
  
    --- Diff: 
common/unsafe/src/main/java/org/apache/spark/unsafe/types/UTF8String.java ---
    @@ -1097,10 +1100,23 @@ public UTF8String copy() {
       @Override
       public int compareTo(@Nonnull final UTF8String other) {
         int len = Math.min(numBytes, other.numBytes);
    -    // TODO: compare 8 bytes as unsigned long
    -    for (int i = 0; i < len; i ++) {
    +    int wordMax = len & ~7;
    --- End diff --
    
    I'd at least comment what this is doing, or leave it how you had it. A 
divide and multiply are trivial.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to