Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 66 for allocated (0.17 sec)

  1. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

    import java.io.InputStreamReader;
    import java.nio.charset.Charset;
    import java.util.Random;
    
    /**
     * Benchmarks for various potential implementations of {@code ByteSource.asCharSource(...).read()}.
     */
    // These benchmarks allocate a lot of data so use a large heap
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class ByteSourceAsCharSourceReadBenchmark {
      enum ReadStrategy {
        TO_BYTE_ARRAY_NEW_STRING {
          @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

    import java.io.InputStreamReader;
    import java.nio.charset.Charset;
    import java.util.Random;
    
    /**
     * Benchmarks for various potential implementations of {@code ByteSource.asCharSource(...).read()}.
     */
    // These benchmarks allocate a lot of data so use a large heap
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class ByteSourceAsCharSourceReadBenchmark {
      enum ReadStrategy {
        TO_BYTE_ARRAY_NEW_STRING {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  3. guava-gwt/src/com/google/common/ForceGuavaCompilation.gwt.xml

      <inherits name="com.google.thirdparty.publicsuffix.PublicSuffixPatterns" />
      <inherits name="com.google.thirdparty.publicsuffix.PublicSuffixType" />
    
      <!-- com.google.common.testing.Testing is located in
           GuavaTests under guava-gwt/test -->
    
      <source path="">
        <include name="ForceGuavaCompilationEntryPoint.java" />
      </source>
      <entry-point class="com.google.common.ForceGuavaCompilationEntryPoint" />
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Sep 27 15:04:14 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMultiset.java

        Builder(int estimatedDistinct) {
          this.contents = ObjectCountHashMap.createWithExpectedSize(estimatedDistinct);
        }
    
        Builder(boolean forSubtype) {
          // for ImmutableSortedMultiset not to allocate data structures not used there
          this.contents = null;
        }
    
        /**
         * Adds {@code element} to the {@code ImmutableMultiset}.
         *
         * @param element the element to add
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/BigIntegerMath.java

        // If the factorial is small enough, just use LongMath to do it.
        if (n < LongMath.factorials.length) {
          return BigInteger.valueOf(LongMath.factorials[n]);
        }
    
        // Pre-allocate space for our list of intermediate BigIntegers.
        int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
        ArrayList<BigInteger> bignums = new ArrayList<>(approxSize);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/math/Stats.java

       *
       * <p><b>Note:</b> No guarantees are made regarding stability of the representation between
       * versions.
       */
      public byte[] toByteArray() {
        ByteBuffer buff = ByteBuffer.allocate(BYTES).order(ByteOrder.LITTLE_ENDIAN);
        writeTo(buff);
        return buff.array();
      }
    
      /**
       * Writes to the given {@link ByteBuffer} a byte representation of this instance.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 22K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/SetsTest.java

        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
        EnumSet<SomeEnum> copy = newEnumSet(Collections.<SomeEnum>emptySet(), SomeEnum.class);
        assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.9K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/collect/FluentIterable.java

       * stream.toArray(MyType[]::new)}. Otherwise use {@code stream.toArray( len -> (E[])
       * Array.newInstance(type, len))}.
       *
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of this fluent iterable have been
       *     copied
       */
      @GwtIncompatible // Array.newArray(Class, int)
      public final E[] toArray(Class<@NonNull E> type) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

       * hasNext()} method will return {@code false}.
       *
       * @param iterator the iterator to copy
       * @param type the type of the elements
       * @return a newly-allocated array into which all the elements of the iterator have been copied
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      public static <T extends @Nullable Object> T[] toArray(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/LineReader.java

      @CheckForNull
      public String readLine() throws IOException {
        while (lines.peek() == null) {
          Java8Compatibility.clear(cbuf);
          // The default implementation of Reader#read(CharBuffer) allocates a
          // temporary char[], so we call Reader#read(char[], int, int) instead.
          int read = (reader != null) ? reader.read(buf, 0, buf.length) : readable.read(cbuf);
          if (read == -1) {
            lineBuf.finish();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top