Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for numGCs (0.61 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/CollectionUtilsTest.groovy

            def spec = { it < 5 }
            def filter = { Integer[] nums -> filter(nums as List, spec) }
    
            expect:
            filter(1, 2, 3) == [1, 2, 3]
            filter(7, 8, 9) == []
            filter() == []
            filter(4, 5, 6) == [4]
        }
    
        def "array filtering"() {
            given:
            def spec = { it < 5 }
            def filter = { Integer[] nums -> filter(nums, spec) }
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      static BigInteger listProduct(List<BigInteger> nums) {
        return listProduct(nums, 0, nums.size());
      }
    
      static BigInteger listProduct(List<BigInteger> nums, int start, int end) {
        switch (end - start) {
          case 0:
            return BigInteger.ONE;
          case 1:
            return nums.get(start);
          case 2:
            return nums.get(start).multiply(nums.get(start + 1));
          case 3:
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. docs/debugging/hash-set/main.go

    	if cardinality <= 0 {
    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    var (
    	file, object, deploymentID, prefix string
    	setCount, shards                   int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue59740.go

    type List[T any] func(T, func(T, List[T]) T) T
    
    func nil[T any](n T, _ List[T]) T        { return n }
    func cons[T any](h T, t List[T]) List[T] { return func(n T, f func(T, List[T]) T) T { return f(h, t) } }
    
    func nums[T any](t T) List[T] {
    	return cons(t, cons(t, nil /* ERROR "type func(n T, _ List[T]) T of nil[T] does not match inferred type List[T] for List[T]" */ [T]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 12:32:24 UTC 2023
    - 800 bytes
    - Viewed (0)
  5. src/cmd/link/internal/wasm/asm.go

    func writeElementSec(ctxt *ld.Link, numImports, numFns uint64) {
    	sizeOffset := writeSecHeader(ctxt, sectionElement)
    
    	writeUleb128(ctxt.Out, 1) // number of element segments
    
    	writeUleb128(ctxt.Out, 0) // tableidx
    	writeI32Const(ctxt.Out, funcValueOffset)
    	ctxt.Out.WriteByte(0x0b) // end
    
    	writeUleb128(ctxt.Out, numFns) // number of entries
    	for i := uint64(0); i < numFns; i++ {
    		writeUleb128(ctxt.Out, numImports+i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. cmd/erasure-metadata-utils.go

    		// Returns an empty int slice for cardinality < 0.
    		return nil
    	}
    
    	nums := make([]int, cardinality)
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    
    	start := int(keyCrc % uint32(cardinality))
    	for i := 1; i <= cardinality; i++ {
    		nums[i-1] = 1 + ((start + i) % cardinality)
    	}
    	return nums
    }
    
    // Reads all `xl.meta` metadata as a FileInfo slice.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    					Type: "object",
    					Properties: map[string]apiextensionsv1.JSONSchemaProps{
    						"nums":    *numbersMapSchema,
    						"content": *stringMapSchema,
    					},
    				}},
    				applyPatchOperation{
    					"Create an instance",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"nums": map[string]interface{}{
    							"num1": 1,
    							"num2": 1000000,
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  8. src/index/suffixarray/suffixarray_test.go

    // Generates many inputs, builds and checks suffix arrays.
    func test(t *testing.T, build func([]byte) []int) {
    	t.Run("ababab...", func(t *testing.T) {
    		// Very repetitive input has numLMS = len(x)/2-1
    		// at top level, the largest it can be.
    		// But maxID is only two (aba and ab$).
    		size := 100000
    		if testing.Short() {
    			size = 10000
    		}
    		x := make([]byte, size)
    		for i := range x {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/types.go

    	// Also, avoid specifying:
    	// 1. Duplicates, the same NUMA node, and memory type, but with a different value.
    	// 2. zero limits for any memory type.
    	// 3. NUMAs nodes IDs that do not exist under the machine.
    	// 4. memory types except for memory and hugepages-<size>
    	ReservedMemory []MemoryReservation
    	// EnableProfiling enables /debug/pprof handler.
    	EnableProfilingHandler bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 21:10:42 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    ":"oldstyle-nums","font-variant-numeric":t},".proportional-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"proportional-nums","font-variant-numeric":t},".tabular-nums":{"@defaults font-variant-numeric":{},"--tw-numeric-spacing":"tabular-nums","font-variant-numeric":t},".diagonal-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":"diagonal-fractions","font-variant-numeric":t},".stacked-fractions":{"@defaults font-variant-numeric":{},"--tw-numeric-fraction":...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
Back to top