- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 5,260 for chunck (0.19 sec)
-
src/runtime/map_benchmark_test.go
idx = 0 } } } type chunk [17]byte func BenchmarkHashBytesSpeed(b *testing.B) { // a bunch of chunks, each with a different alignment mod 16 var chunks [size]chunk // initialize each to a different value for i := 0; i < size; i++ { chunks[i][0] = byte(i) } // put into a map m := make(map[chunk]int, size) for i, c := range chunks { m[c] = i } idx := 0 b.ResetTimer()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go
return err } // YAMLDecoder reads chunks of objects and returns ErrShortBuffer if // the data is not sufficient. type YAMLDecoder struct { r io.ReadCloser scanner *bufio.Scanner remaining []byte } // NewDocumentDecoder decodes YAML documents from the provided // stream in chunks by converting each document (as defined by // the YAML spec) into its own chunk. io.ErrShortBuffer will be
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 19 21:24:36 UTC 2021 - 10.2K bytes - Viewed (0) -
test/fixedbugs/issue13160.go
// license that can be found in the LICENSE file. package main import ( "fmt" "runtime" ) const N = 100000 func main() { // Allocate more Ps than processors. This raises // the chance that we get interrupted by the OS // in exactly the right (wrong!) place. p := runtime.NumCPU() runtime.GOMAXPROCS(2 * p) // Allocate some pointers. ptrs := make([]*int, p) for i := 0; i < p; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.5K bytes - Viewed (0) -
src/internal/diff/diff.go
if count.x > 0 { chunk.x++ } if count.y > 0 { chunk.y++ } fmt.Fprintf(&out, "@@ -%d,%d +%d,%d @@\n", chunk.x, count.x, chunk.y, count.y) for _, s := range ctext { out.WriteString(s) } count.x = 0 count.y = 0 ctext = ctext[:0] } // If we reached EOF, we're done. if end.x >= len(x) && end.y >= len(y) { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 14:13:04 UTC 2023 - 7.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverpkg_partial.txt
func TestB(t *testing.T) { if BFunc() == 1010101 { t.Fatalf("bad!") } } -- c/c.go -- package c var G int func CFunc(x, y int) int { G += x G -= y return x + y } -- c/c_test.go -- package c import "testing" func TestC(t *testing.T) { if CFunc(10, 10) == 1010101 { t.Fatalf("bad!") } } -- d/d.go -- package d const FortyTwo = 42 func DFunc() int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:12:49 UTC 2024 - 3.3K bytes - Viewed (0) -
src/runtime/malloc.go
// //go:nosplit func inPersistentAlloc(p uintptr) bool { chunk := atomic.Loaduintptr((*uintptr)(unsafe.Pointer(&persistentChunks))) for chunk != 0 { if p >= chunk && p < chunk+persistentChunkSize { return true } chunk = *(*uintptr)(unsafe.Pointer(chunk)) } return false } // linearAlloc is a simple linear allocator that pre-reserves a region
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 59.6K bytes - Viewed (0) -
src/runtime/arena_test.go
func testUserArenaLiveness(t *testing.T, useArenaFinalizer bool) { // Disable the GC so that there's zero chance we try doing anything arena related *during* // a mark phase, since otherwise a bunch of arenas could end up on the fault list. defer debug.SetGCPercent(debug.SetGCPercent(-1)) // Defensively ensure that any full arena chunks leftover from previous tests have been cleared. GC() GC() arena := NewUserArena()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 13.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/filters/goaway_test.go
cases := []struct { name string chance float64 nextFn func(chance float64) func() float64 expectGOAWAY bool }{ { name: "always not GOAWAY", chance: 0, nextFn: func(chance float64) func() float64 { return rand.Float64 }, expectGOAWAY: false, }, { name: "always GOAWAY", chance: 1, nextFn: func(chance float64) func() float64 { return rand.Float64
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 17 12:58:54 UTC 2021 - 13.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/transform/transform.go
buf := [2 * initialBufSize]byte{} dst := buf[:initialBufSize:initialBufSize] src := buf[initialBufSize : 2*initialBufSize] // The input string s is transformed in multiple chunks (starting with a // chunk size of initialBufSize). nDst and nSrc are per-chunk (or // per-Transform-call) indexes, pDst and pSrc are overall indexes. nDst, nSrc := 0, 0 pDst, pSrc := 0, 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 21.7K bytes - Viewed (0) -
tensorflow/cc/saved_model/fingerprinting_utils_test.cc
TF_ASSERT_OK(read_metadata.status()); } ChunkMetadata chunk_metadata = read_metadata.value(); std::vector<ChunkInfo> chunks_info = std::vector<ChunkInfo>( chunk_metadata.chunks().begin(), chunk_metadata.chunks().end()); FieldIndex field_one_field_tag; field_one_field_tag.set_field(1); FieldIndex repeated_field_field_tag; repeated_field_field_tag.set_field(2);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 20 22:19:55 UTC 2024 - 15.2K bytes - Viewed (0)