Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for naive (0.08 sec)

  1. android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java

     *
     * @author mike nonemacher
     */
    @GwtCompatible(emulated = true)
    class TestingCacheLoaders {
    
      /**
       * Returns a {@link CacheLoader} that implements a naive {@link CacheLoader#loadAll}, delegating
       * {@link CacheLoader#load} calls to {@code loader}.
       */
      static <K, V> CacheLoader<K, V> bulkLoader(final CacheLoader<K, V> loader) {
        checkNotNull(loader);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/StatsAccumulator.java

       */
      static double calculateNewMeanNonFinite(double previousMean, double value) {
        /*
         * Desired behaviour is to match the results of applying the naive mean formula. In particular,
         * the update formula can subtract infinities in cases where the naive formula would add them.
         *
         * Consequently:
         * 1. If the previous mean is finite and the new value is non-finite then the new mean is that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertEquals(1, future.get(-1, SECONDS).intValue());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. architecture/networking/pilot.md

            pj--trigger-->c
        end
    ```
    
    At a high level, each client job will find the correct generator for the request, generate the required configuration, and send it.
    
    #### Optimizations
    
    A naive implementation would simply regenerate all resources, of all subscribed types, for each client, on any configuration change. However, this scales poorly. As a result, we have many levels of optimizations to avoid doing this work.
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Feb 07 17:53:24 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  6. cmd/object-api-utils_test.go

    }
    
    func concatNaive(ss ...string) string {
    	rs := ss[0]
    	for i := 1; i < len(ss); i++ {
    		rs += ss[i]
    	}
    	return rs
    }
    
    func benchmark(b *testing.B, data []string) {
    	b.Run("concat naive", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			concatNaive(data...)
    		}
    	})
    	b.Run("concat fast", func(b *testing.B) {
    		b.ResetTimer()
    		b.ReportAllocs()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/ByteStreams.java

       *       have file descriptors. Bytes are copied from the file into a kernel buffer, then directly
       *       into the other buffer (userspace). Note that if the file is very large, a naive
       *       implementation will effectively put the whole file in memory. On many systems with paging
       *       and virtual memory, this is not a problem - because it is mapped read-only, the kernel
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  8. common/scripts/metallb-native.yaml

    # Downloaded from https://github.com/metallb/metallb/raw/v0.13.12/config/manifests/metallb-native.yaml
    # With quay.io hub replaced with gcr.io/istio-testing
    # And probes tuned to startup faster
    apiVersion: v1
    kind: Namespace
    metadata:
      labels:
        pod-security.kubernetes.io/audit: privileged
        pod-security.kubernetes.io/enforce: privileged
        pod-security.kubernetes.io/warn: privileged
      name: metallb-system
    ---
    apiVersion: apiextensions.k8s.io/v1
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Feb 23 23:56:31 UTC 2024
    - 63.9K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.native.js

    cpovirk <******@****.***> 1685135561 -0700
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 26 21:15:08 UTC 2023
    - 73 bytes
    - Viewed (0)
  10. okhttp/src/main/resources/META-INF/native-image/okhttp/okhttp/native-image.properties

    Jesse Wilson <******@****.***> 1703114827 -0500
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 122 bytes
    - Viewed (0)
Back to top