Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 167 for efficiency (0.05 seconds)

  1. android/guava/src/com/google/common/collect/ForwardingNavigableMap.java

       * ForwardingNavigableMap#descendingMap} to forward to this implementation or a subclass thereof.
       *
       * <p>In particular, this map iterates over entries with repeated calls to {@link
       * NavigableMap#lowerEntry}. If a more efficient means of iteration is available, you may wish to
       * override the {@code entryIterator()} method of this class.
       *
       * @since 12.0
       */
      protected class StandardDescendingMap extends Maps.DescendingMap<K, V> {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ForwardingNavigableMap.java

       * ForwardingNavigableMap#descendingMap} to forward to this implementation or a subclass thereof.
       *
       * <p>In particular, this map iterates over entries with repeated calls to {@link
       * NavigableMap#lowerEntry}. If a more efficient means of iteration is available, you may wish to
       * override the {@code entryIterator()} method of this class.
       *
       * @since 12.0
       */
      protected class StandardDescendingMap extends Maps.DescendingMap<K, V> {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 14.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

     * Ordering#leastOf(Iterable, int)}, which provides the same implementation with an interface
     * tailored to that use case.
     *
     * <p>This uses the same efficient implementation as {@link Ordering#leastOf(Iterable, int)},
     * offering expected O(n + k log k) performance (worst case O(n log k)) for n calls to {@link
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 31 13:15:26 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  4. src/bytes/buffer.go

    // String returns the contents of the unread portion of the buffer
    // as a string. If the [Buffer] is a nil pointer, it returns "<nil>".
    //
    // To build strings more efficiently, see the [strings.Builder] type.
    func (b *Buffer) String() string {
    	if b == nil {
    		// Special case, useful in debugging.
    		return "<nil>"
    	}
    	return string(b.buf[b.off:])
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/crypto/CachedCipher.java

    import org.codelibs.core.misc.Base64Util;
    
    /**
     * A high-performance utility class for encrypting and decrypting data using cached {@link Cipher} instances.
     * <p>
     * This class provides efficient encryption/decryption by pooling and reusing cipher instances,
     * reducing the overhead of repeated cipher initialization. It supports both string-based keys
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                    }
                }
                return buf.toString();
            }
        }
    
        public ArtifactVersion matchVersion(List<ArtifactVersion> versions) {
            // TODO could be more efficient by sorting the list and then moving along the restrictions in order?
    
            ArtifactVersion matched = null;
            for (ArtifactVersion version : versions) {
                if (containsVersion(version)) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 19K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Longs.java

        reverse(array, fromIndex, toIndex);
      }
    
      /**
       * Reverses the elements of {@code array}. This is equivalent to {@code
       * Collections.reverse(Longs.asList(array))}, but is likely to be more efficient.
       *
       * @since 23.1
       */
      public static void reverse(long[] array) {
        checkNotNull(array);
        reverse(array, 0, array.length);
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 29K bytes
    - Click Count (0)
  8. guava/src/com/google/common/reflect/Types.java

          }
        }
      }
    
      /** Returns the {@code Class} object of arrays with {@code componentType}. */
      static Class<?> getArrayClass(Class<?> componentType) {
        // TODO(user): This is not the most efficient way to handle generic
        // arrays, but is there another way to extract the array class in a
        // non-hacky way (i.e. using String value class names- "[L...")?
        return Array.newInstance(componentType, 0).getClass();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  9. internal/grid/types.go

    // call Recycle() when the object is no longer needed.
    // The recycler should handle nil pointers.
    type Recycler interface {
    	Recycle()
    }
    
    // MSS is a map[string]string that can be serialized.
    // It is not very efficient, but it is only used for easy parameter passing.
    type MSS map[string]string
    
    // Get returns the value for the given key.
    func (m *MSS) Get(key string) string {
    	if m == nil {
    		return ""
    	}
    	return (*m)[key]
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/io/FilesTest.java

        return file(new File(first), more);
      }
    
      /** Returns a {@code File} object for the given path parts. */
      private static File file(File first, String... more) {
        // not very efficient, but should definitely be correct
        File file = first;
        for (String name : more) {
          file = new File(file, name);
        }
        return file;
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 18:44:53 GMT 2025
    - 22.1K bytes
    - Click Count (0)
Back to Top