Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 145 for fast (0.02 sec)

  1. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       * @return this for the builder pattern
       */
      @CanIgnoreReturnValue
      public ThreadFactoryBuilder setNameFormat(String nameFormat) {
        String unused = format(nameFormat, 0); // fail fast if the format is bad or null
        this.nameFormat = nameFormat;
        return this;
      }
    
      /**
       * Sets daemon or not for new threads created with this ThreadFactory.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:35:26 UTC 2025
    - 9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/AppendableWriter.java

      /*
       * Abstract methods from Writer
       */
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        checkNotClosed();
        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
        target.append(new String(cbuf, off, len));
      }
    
      /*
       * Override a few functions for performance reasons to avoid creating unnecessary strings.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Throwables.java

       *
       * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code
       *     ClassCastException}'s cause is {@code throwable}.
       * @since 22.0
       */
      @GwtIncompatible // Class.cast(Object)
      public static <X extends Throwable> @Nullable X getCauseAs(
          Throwable throwable, Class<X> expectedCauseType) {
        try {
          return expectedCauseType.cast(throwable.getCause());
        } catch (ClassCastException e) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Platform.java

       * - https://github.com/jspecify/jspecify/issues/65
       *
       * - https://github.com/jspecify/jdk/commit/71d826792b8c7ef95d492c50a274deab938f2552
       */
      /*
       * TODO(cpovirk): Is the unchecked cast avoidable? Would System.arraycopy be similarly fast (if
       * likewise not type-checked)? Could our single caller do something different?
       */
      @SuppressWarnings({"nullness", "unchecked"})
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. .github/workflows/build.yml

          - name: Run native-image tests
            run: ./gradlew -PgraalBuild=true native-image-tests:nativeTest
    
      testandroid:
        runs-on: ubuntu-latest
        timeout-minutes: 30
    
        strategy:
          fail-fast: false
          matrix:
            api-level:
              - 21
              - 29
              - 34
    
        steps:
          - name: Checkout
            uses: actions/checkout@v5
    
          - name: Configure JDK
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 07:15:58 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/Platform.java

       * - https://github.com/jspecify/jspecify/issues/65
       *
       * - https://github.com/jspecify/jdk/commit/71d826792b8c7ef95d492c50a274deab938f2552
       */
      /*
       * TODO(cpovirk): Is the unchecked cast avoidable? Would System.arraycopy be similarly fast (if
       * likewise not type-checked)? Could our single caller do something different?
       */
      @SuppressWarnings({"nullness", "unchecked"})
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

           * AGP: https://github.com/google/guava/issues/7769.
           *
           * My impression is that an AtomicReferenceFieldUpdater in a static field is similarly fast to
           * Unsafe on modern JVMs (if perhaps not quite as fast as VarHandle?). However, I'm not sure
           * exactly what we've benchmarked, and we certainly haven't benchmarked as far back as JDK 8.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/InterruptibleTask.java

          if (spinCount > MAX_BUSY_WAIT_SPINS) {
            /*
             * If we have spun a lot, just park ourselves. This will save CPU while we wait for a slow
             * interrupting thread. In theory, interruptTask() should be very fast, but due to
             * InterruptibleChannel and JavaLangAccess.blockedOn(Thread, Interruptible), it isn't
             * predictable what work might be done. (e.g., close a file and flush buffers to disk). To
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 10K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/BigIntegerMath.java

            return sqrtFloor;
          case CEILING:
          case UP:
            int sqrtFloorInt = sqrtFloor.intValue();
            boolean sqrtFloorIsExact =
                (sqrtFloorInt * sqrtFloorInt == x.intValue()) // fast check mod 2^32
                    && sqrtFloor.pow(2).equals(x); // slow exact check
            return sqrtFloorIsExact ? sqrtFloor : sqrtFloor.add(BigInteger.ONE);
          case HALF_DOWN:
          case HALF_UP:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/UnsignedLongs.java

              x >>>= shift;
            } while (x != 0);
          } else {
            // Separate off the last digit using unsigned division. That will leave
            // a number that is nonnegative as a signed integer.
            long quotient;
            if ((radix & 1) == 0) {
              // Fast path for the usual case where the radix is even.
              quotient = (x >>> 1) / (radix >>> 1);
            } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top