Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for improvement (0.19 sec)

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

          numberRemoved = oldCount;
          backingMap.remove(element);
        }
    
        frequency.add(-numberRemoved);
        size -= numberRemoved;
        return oldCount;
      }
    
      // Roughly a 33% performance improvement over AbstractMultiset.setCount().
      @CanIgnoreReturnValue
      @Override
      public int setCount(@ParametricNullness E element, int count) {
        checkNonnegative(count, "count");
    
        Count existingCounter;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Ascii.java

            continue;
          }
          int alphaIndex = getAlphaIndex(c1);
          // This was also benchmarked using '&' to avoid branching (but always evaluate the rhs),
          // however this showed no obvious improvement.
          if (alphaIndex < 26 && alphaIndex == getAlphaIndex(c2)) {
            continue;
          }
          return false;
        }
        return true;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Ascii.java

            continue;
          }
          int alphaIndex = getAlphaIndex(c1);
          // This was also benchmarked using '&' to avoid branching (but always evaluate the rhs),
          // however this showed no obvious improvement.
          if (alphaIndex < 26 && alphaIndex == getAlphaIndex(c2)) {
            continue;
          }
          return false;
        }
        return true;
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jul 19 15:43:07 GMT 2021
    - 21.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/LongMath.java

       * to prove its primality. Values from miller-rabin.appspot.com.
       *
       * NOTE: We could get slightly better bases that would be treated as unsigned, but benchmarks
       * showed negligible performance improvements.
       */
      private static final long[][] millerRabinBaseSets = {
        {291830, 126401071349994536L},
        {885594168, 725270293939359937L, 3569819667048198375L},
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
Back to top