Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 255 for compareIDs (0.42 sec)

  1. pilot/pkg/config/monitor/monitor.go

    		log.Warnf("Failed to delete config (%+v): %v ", *c, err)
    	}
    }
    
    // compareIDs compares the IDs (i.e. Namespace, GroupVersionKind, and Name) of the two configs and returns
    // 0 if a == b, -1 if a < b, and 1 if a > b. Used for sorting config arrays.
    func compareIDs(a, b *config.Config) int {
    	return strings.Compare(a.Key(), b.Key())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. pilot/pkg/config/monitor/file_snapshot.go

    type byKey []*config.Config
    
    func (rs byKey) Len() int {
    	return len(rs)
    }
    
    func (rs byKey) Swap(i, j int) {
    	rs[i], rs[j] = rs[j], rs[i]
    }
    
    func (rs byKey) Less(i, j int) bool {
    	return compareIDs(rs[i], rs[j]) < 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 17:36:33 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. src/testing/benchmark_test.go

    	testing.Benchmark(func(b *testing.B) {
    		var compares int64
    		for i := 0; i < b.N; i++ {
    			s := []int{5, 4, 3, 2, 1}
    			slices.SortFunc(s, func(a, b int) int {
    				compares++
    				return cmp.Compare(a, b)
    			})
    		}
    		// This metric is per-operation, so divide by b.N and
    		// report it as a "/op" unit.
    		b.ReportMetric(float64(compares)/float64(b.N), "compares/op")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. testing/internal-performance-testing/README.md

    Gradle version under test and using several other baseline Gradle versions. The test compares the results to report on performance regressions relative to these baseline versions. 
    - `AbstractCrossBuildPerformanceTest`: A performance test that runs several different scenarios using the Gradle version under test and compares the results.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/SortedLists.java

      /**
       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. src/internal/fmtsort/sort.go

    //
    // The ordering rules are more general than with Go's < operator:
    //
    //   - when applicable, nil compares low
    //   - ints, floats, and strings order by <
    //   - NaN compares less than non-NaN floats
    //   - bool compares false before true
    //   - complex compares real, then imag
    //   - pointers compare by machine address
    //   - channel values compare by machine address
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/SortedLists.java

      /**
       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
          @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ComparisonChain.java

      /**
       * Compares two objects using a comparator, <i>if</i> the result of this comparison chain has not
       * already been determined.
       */
      public abstract <T extends @Nullable Object> ComparisonChain compare(
          @ParametricNullness T left, @ParametricNullness T right, Comparator<T> comparator);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ComparisonChain.java

      /**
       * Compares two objects using a comparator, <i>if</i> the result of this comparison chain has not
       * already been determined.
       */
      public abstract <T extends @Nullable Object> ComparisonChain compare(
          @ParametricNullness T left, @ParametricNullness T right, Comparator<T> comparator);
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 17:28:11 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-string.h

      // Compares two wide C strings.  Returns true iff they have the same
      // content.
      //
      // Unlike wcscmp(), this function can handle NULL argument(s).  A
      // NULL C string is considered different to any non-NULL C string,
      // including the empty string.
      static bool WideCStringEquals(const wchar_t* lhs, const wchar_t* rhs);
    
      // Compares two C strings, ignoring case.  Returns true iff they
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top