Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for unsafeComparator (0.05 sec)

  1. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

          return false;
        }
      }
    
      private int unsafeBinarySearch(Object key) throws ClassCastException {
        return Collections.binarySearch(elements, key, unsafeComparator());
      }
    
      @Override
      boolean isPartialView() {
        return elements.isPartialView();
      }
    
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 21:07:18 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
        javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
        unsafeImpl = UnsignedBytes.LexicographicalComparatorHolder.UnsafeComparator.INSTANCE;
      }
    
      @Benchmark
      void longEqualJava(int reps) {
        for (int i = 0; i < reps; ++i) {
          if (javaImpl.compare(ba1, ba2) != 0) {
            throw new Error(); // deoptimization
          }
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top