Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for copyPreSizedArrayList (0.1 sec)

  1. android/guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += ImmutableList.copyOf(builder).size();
        }
        return dummy;
      }
    
      @Benchmark
      int copyPreSizedArrayList(int reps) {
        int size = this.size;
        int tmp = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayListWithCapacity(size);
          for (int i = 0; i < size; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/collect/ImmutableListCreationBenchmark.java

          for (int i = 0; i < size; i++) {
            builder.add(OBJECT);
          }
          dummy += ImmutableList.copyOf(builder).size();
        }
        return dummy;
      }
    
      @Benchmark
      int copyPreSizedArrayList(int reps) {
        int size = this.size;
        int tmp = 0;
        for (int rep = 0; rep < reps; rep++) {
          List<Object> builder = Lists.newArrayListWithCapacity(size);
          for (int i = 0; i < size; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.3K bytes
    - Viewed (0)
Back to top