Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,508 for makeID (0.15 sec)

  1. src/runtime/slice_test.go

    )
    
    const N = 20
    
    func BenchmarkMakeSliceCopy(b *testing.B) {
    	const length = 32
    	var bytes = make([]byte, 8*length)
    	var ints = make([]int, length)
    	var ptrs = make([]*byte, length)
    	b.Run("mallocmove", func(b *testing.B) {
    		b.Run("Byte", func(b *testing.B) {
    			var x []byte
    			for i := 0; i < b.N; i++ {
    				x = make([]byte, len(bytes))
    				copy(x, bytes)
    			}
    		})
    		b.Run("Int", func(b *testing.B) {
    			var x []int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/best-practices/organizing_gradle_projects.adoc

    By sticking to the default conventions, new developers to the project immediately know how to find their way around.
    While those conventions can be reconfigured, it makes it harder to build script users and authors to manage the build logic and its outcome.
    Try to stick to the default conventions as much as possible except if you need to adapt to the layout of a legacy project.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:16:36 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    // the actual system call.
    //
    // Note: KeepAlive should only be used to prevent finalizers from
    // running prematurely. In particular, when used with [unsafe.Pointer],
    // the rules for valid uses of unsafe.Pointer still apply.
    func KeepAlive(x any) {
    	// Introduce a use of x that the compiler can't eliminate.
    	// This makes sure x is alive on entry. We need x to be alive
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. test/codegen/slices.go

    	// amd64:`.*runtime\.panicmakeslicelen`
    	return append(s, make([]byte, l)...)
    }
    
    func SliceExtensionInt64(s []int, l64 int64) []int {
    	// 386:`.*runtime\.makeslice`
    	// 386:-`.*runtime\.memclr`
    	return append(s, make([]int, l64)...)
    }
    
    // ------------------ //
    //      Make+Copy     //
    // ------------------ //
    
    // Issue #26252 - avoid memclr for make+copy
    
    func SliceMakeCopyLen(s []int) []int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 18:57:27 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/stackcheck.go

    		morestack: ctxt.loader.Lookup("runtime.morestack", 0),
    		height:    make(map[loader.Sym]int16, len(ctxt.Textp)),
    	}
    	// Compute stack effect of a CALL operation. 0 on LR machines.
    	// 1 register pushed on non-LR machines.
    	if !ctxt.Arch.HasLR {
    		sc.callSize = ctxt.Arch.RegSize
    	}
    
    	if graph {
    		// We're going to record the call graph.
    		sc.graph = make(map[loader.Sym][]stackCheckEdge)
    	}
    
    	return sc
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 16:49:08 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/security/simple-oauth2.md

        `OAuth2PasswordBearer` makes **FastAPI** know that it is a security scheme. So it is added that way to OpenAPI.
    
        But `OAuth2PasswordRequestForm` is just a class dependency that you could have written yourself, or you could have declared `Form` parameters directly.
    
        But as it's a common use case, it is provided by **FastAPI** directly, just to make it easier.
    
    ### Use the form data
    
    !!! tip
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/go/types/issues_test.go

    L6 uses var x int
    L7 uses var x int
    L7 uses var y int
    L7 uses var z int`
    
    	// don't abort at the first error
    	conf := Config{Error: func(err error) { t.Log(err) }}
    	defs := make(map[*ast.Ident]Object)
    	uses := make(map[*ast.Ident]Object)
    	_, err := conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs, Uses: uses})
    	if s := err.Error(); !strings.HasSuffix(s, "cannot assign to w") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  8. src/runtime/map_benchmark_test.go

    	}
    	sum := 0
    	m := make(map[int32]int, size)
    	for i := 0; i < size; i++ {
    		m[ints[i]] = 0
    	}
    	idx := 0
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		sum += m[ints[idx]]
    		idx++
    		if idx == size {
    			idx = 0
    		}
    	}
    }
    
    func BenchmarkHashInt64Speed(b *testing.B) {
    	ints := make([]int64, size)
    	for i := 0; i < size; i++ {
    		ints[i] = int64(i)
    	}
    	sum := 0
    	m := make(map[int64]int, size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 16:41:16 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  9. pkg/test/framework/components/istio/config.go

    	DeployEastWestGW bool
    
    	// DumpKubernetesManifests will cause Kubernetes YAML generated by istioctl install/generate to be dumped to artifacts.
    	DumpKubernetesManifests bool
    
    	// IstiodlessRemotes makes remote clusters run without istiod, using webhooks/ca from the primary cluster.
    	// TODO we could set this per-cluster if istiod was smarter about patching remotes.
    	IstiodlessRemotes bool
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 20:33:28 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. apache-maven/src/main/appended-resources/licenses/EPL-2.0.txt

      sufficient copyright rights in its Contribution, if any, to grant
      the copyright license set forth in this Agreement.
    
      e) Notwithstanding the terms of any Secondary License, no
      Contributor makes additional grants to any Recipient (other than
      those set forth in this Agreement) as a result of such Recipient's
      receipt of the Program under the terms of a Secondary License
      (if permitted under the terms of Section 3).
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 04 06:45:16 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top