Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for booleanIfFirst (0.12 sec)

  1. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      /**
       * Similar to the above, but keeps a boolean flag rather than checking for the string accumulated
       * so far being empty. As a result, it does not have the above-mentioned bug.
       */
      @Benchmark
      int booleanIfFirst(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
          boolean append = false;
          for (String comp : components) {
            if (append) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 16:19:35 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top