Dandandan commented on code in PR #9250:
URL: https://github.com/apache/arrow-rs/pull/9250#discussion_r2721882367


##########
arrow-ord/src/cmp.rs:
##########
@@ -573,36 +573,84 @@ impl<'a, T: ByteViewType> ArrayOrd for &'a 
GenericByteViewArray<T> {
             return l_view == r_view;
         }
 
+        // Fast path for same view (and both inlined)
+        if l_view == r_view && *l_view as u32 <= 12 {
+            return true;
+        }
+
         let l_len = *l_view as u32;
         let r_len = *r_view as u32;
-        // This is a fast path for equality check.
-        // We don't need to look at the actual bytes to determine if they are 
equal.
+        // Lengths differ
         if l_len != r_len {
             return false;
         }
-        if l_len == 0 && r_len == 0 {
+
+        // Both are empty
+        if l_len == 0 {

Review Comment:
   Yeah...



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

Reply via email to