Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for 2048 (0.16 sec)

  1. src/bytes/bytes_test.go

    				Compare(x, y)
    			}
    		})
    	}
    }
    
    func BenchmarkIndexAnyASCII(b *testing.B) {
    	x := Repeat([]byte{'#'}, 2048) // Never matches set
    	cs := "0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz"
    	for k := 1; k <= 2048; k <<= 4 {
    		for j := 1; j <= 64; j <<= 1 {
    			b.Run(fmt.Sprintf("%d:%d", k, j), func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    // https://golang.org/src/crypto/tls/generate_cert.go
    func generateTLSCertKey(host string) ([]byte, []byte, error) {
    	validFor := 365 * 24 * time.Hour
    	rsaBits := 2048
    
    	if len(host) == 0 {
    		return nil, nil, fmt.Errorf("Missing host parameter")
    	}
    
    	publicKey := func(priv interface{}) interface{} {
    		switch k := priv.(type) {
    		case *rsa.PrivateKey:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    			return updatedAt, err
    		}
    
    		policyBuf, err := json.Marshal(opts.sessionPolicy)
    		if err != nil {
    			return updatedAt, err
    		}
    
    		if len(policyBuf) > 2048 {
    			return updatedAt, errSessionPolicyTooLarge
    		}
    
    		// Overwrite session policy claims.
    		m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  4. cmd/iam.go

    		if err != nil {
    			return auth.Credentials{}, time.Time{}, err
    		}
    		policyBuf, err = json.Marshal(opts.sessionPolicy)
    		if err != nil {
    			return auth.Credentials{}, time.Time{}, err
    		}
    		if len(policyBuf) > 2048 {
    			return auth.Credentials{}, time.Time{}, errSessionPolicyTooLarge
    		}
    	}
    
    	// found newly requested service account, to be same as
    	// parentUser, reject such operations.
    	if parentUser == opts.accessKey {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  5. cmd/erasure-server-pool.go

    		}
    	)
    
    	// Maximum number of reusable buffers per node at any given point in time.
    	n := uint64(1024) // single node single/multiple drives set this to 1024 entries
    
    	if globalIsDistErasure {
    		n = 2048
    	}
    
    	// Avoid allocating more than half of the available memory
    	if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN {
    		n = maxN
    	}
    
    	if globalIsCICD || strconv.IntSize == 32 {
    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)
Back to top