Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for big (7.57 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       * }
       *
       * The alternative natural refactorings into void or Exception-returning methods are much slower.
       * This is a big deal - we're talking factors of 2-8 in microbenchmarks, not just 10-20%. (This is
       * a hotspot optimizer bug, which should be fixed, but that's a separate, big project).
       *
       * The coding pattern above is heavily used in java.util, e.g. in ArrayList. There is a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          try {
            val parsed = s.toLong()
            return if (parsed <= 0L) Long.MIN_VALUE else parsed
          } catch (e: NumberFormatException) {
            // Check if the value is an integer (positive or negative) that's too big for a long.
            if (s.matches("-?\\d+".toRegex())) {
              return if (s.startsWith("-")) Long.MIN_VALUE else Long.MAX_VALUE
            }
            throw e
          }
        }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals(1, Lists.partition(list, Integer.MAX_VALUE).size());
        assertEquals(1, Lists.partition(list, Integer.MAX_VALUE - 1).size());
      }
    
      @GwtIncompatible // cannot do such a big explicit copy
      @J2ktIncompatible // too slow
      public void testPartitionSize_2() {
        assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    			cap0 = b.Cap()
    		}
    	}
    	cap1 := b.Cap()
    	// (*Buffer).grow allows for 2x capacity slop before sliding,
    	// so set our error threshold at 3x.
    	if cap1 > cap0*3 {
    		t.Errorf("buffer cap = %d; too big (grew from %d)", cap1, cap0)
    	}
    }
    
    func BenchmarkWriteByte(b *testing.B) {
    	const n = 4 << 10
    	b.SetBytes(n)
    	buf := NewBuffer(make([]byte, n))
    	for i := 0; i < b.N; i++ {
    		buf.Reset()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ListsTest.java

        assertEquals(1, Lists.partition(list, Integer.MAX_VALUE).size());
        assertEquals(1, Lists.partition(list, Integer.MAX_VALUE - 1).size());
      }
    
      @GwtIncompatible // cannot do such a big explicit copy
      @J2ktIncompatible // too slow
      public void testPartitionSize_2() {
        assertEquals(2, Lists.partition(Collections.nCopies(0x40000001, 1), 0x40000000).size());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 35.2K bytes
    - Viewed (0)
  6. cmd/post-policy_test.go

    			noFilename:         true,
    		},
    		// Success case, big body.
    		{
    			objectName:         "test",
    			data:               bytes.Repeat([]byte("a"), 10<<20),
    			expectedRespStatus: http.StatusNoContent,
    			accessKey:          credentials.AccessKey,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 29.6K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    		}
    		_, err = buf.WriteTo(conn)
    		if err != nil {
    			gridLogIf(ctx, fmt.Errorf("ws write: %w", err))
    			return
    		}
    
    		if buf.Cap() > writeBufferSize*4 {
    			// Reset buffer if it gets too big, so we don't keep it around.
    			buf = bytes.Buffer{}
    		}
    	}
    }
    
    func (c *Connection) handleMsg(ctx context.Context, m message, subID *subHandlerID) {
    	switch m.Op {
    	case OpMuxServerMsg:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_test.cc

      TestEncodeDecode(__LINE__, {});
      TestEncodeDecode(__LINE__, {"hello"});
      TestEncodeDecode(__LINE__,
                       {"the", "quick", "brown", "fox", "jumped", "over"});
    
      string big(1000, 'a');
      TestEncodeDecode(__LINE__, {"small", big, "small2"});
    }
    
    TEST(CAPI, SessionOptions) {
      TF_SessionOptions* opt = TF_NewSessionOptions();
      TF_DeleteSessionOptions(opt);
    }
    
    TEST(CAPI, DeprecatedSession) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  9. cmd/erasure-server-pool.go

    		//
    		// This happens repeatedly for all objects that are created concurrently() avoiding this
    		// as a List() call is an important performance improvement.
    		//
    		// Spark based s3a committers are a  big enough use-case to have this optimization.
    		//
    		// A sample code to see the improvements is as follows, this sample code is
    		// simply a read on JSON from MinIO and write it back as "parquet".
    		//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  10. cmd/bucket-replication.go

    		}
    		uploadedParts = append(uploadedParts, minio.CompletePart{
    			PartNumber: pInfo.PartNumber,
    			ETag:       pInfo.ETag,
    		})
    	}
    
    	// really big value but its okay on heavily loaded systems. This is just tail end timeout.
    	cctx, ccancel := context.WithTimeout(ctx, 10*time.Minute)
    	defer ccancel()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
Back to top