- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 5,950 for i$ (0.03 sec)
-
src/reflect/benchmark_test.go
for i := 0; i < b.N; i++ { sinkAll.RawBytes = sourceAll.NamedBytes.Bytes() } } func BenchmarkBytesArray(b *testing.B) { for i := 0; i < b.N; i++ { sinkAll.RawBytes = sourceAll.BytesArray.Bytes() } } func BenchmarkSliceLen(b *testing.B) { for i := 0; i < b.N; i++ { sinkAll.RawInt = sourceAll.SliceAny.Len() } } func BenchmarkMapLen(b *testing.B) { for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Nov 19 17:09:03 UTC 2023 - 8.8K bytes - Viewed (0) -
cmd/metrics-v2_gen_test.go
v := MetricDescription{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgMetricDescription(b *testing.B) { v := MetricDescription{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { bts, _ = v.MarshalMsg(bts[0:0]) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Mar 10 09:15:15 UTC 2024 - 4.7K bytes - Viewed (0) -
src/os/path_unix.go
path = path[1:] } i := len(path) - 1 // Remove trailing slashes. for ; i > 0 && path[i] == '/'; i-- { path = path[:i] } // if no slashes in path, base is path basename := path // Remove leading directory path for i--; i >= 0; i-- { if path[i] == '/' { if i == 0 { dirname = path[:1] } else { dirname = path[:i] } basename = path[i+1:] break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 18:44:48 UTC 2024 - 1.2K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/pgo/devirtualize/mult.pkg/mult.go
func MultFn(a, b int64) int64 { for i := 0; i < 1000; i++ { sink++ } return a * b } func NegMultFn(a, b int64) int64 { for i := 0; i < 1000; i++ { sink++ } return -1 * a * b } //go:noinline func MultClosure() MultFunc { // Explicit closure to differentiate from AddClosure. c := 1 return func(a, b int64) int64 { for i := 0; i < 1000; i++ { sink++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 13 18:17:57 UTC 2023 - 1.2K bytes - Viewed (0) -
staging/src/k8s.io/api/admission/v1beta1/generated.pb.go
i -= len(m.Operation) copy(dAtA[i:], m.Operation) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Operation))) i-- dAtA[i] = 0x3a i -= len(m.Namespace) copy(dAtA[i:], m.Namespace) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) i-- dAtA[i] = 0x32 i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0x2a i -= len(m.SubResource)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 46.1K bytes - Viewed (0) -
staging/src/k8s.io/api/autoscaling/v2/generated.pb.go
if err != nil { return 0, err } i -= size i = encodeVarintGenerated(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a i -= len(m.Status) copy(dAtA[i:], m.Status) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) i-- dAtA[i] = 0x12 i -= len(m.Type) copy(dAtA[i:], m.Type) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) i-- dAtA[i] = 0xa
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:37 UTC 2024 - 162.9K bytes - Viewed (0) -
src/strings/reader.go
if r.i >= int64(len(r.s)) { r.prevRune = -1 return 0, 0, io.EOF } r.prevRune = int(r.i) if c := r.s[r.i]; c < utf8.RuneSelf { r.i++ return rune(c), 1, nil } ch, size = utf8.DecodeRuneInString(r.s[r.i:]) r.i += int64(size) return } // UnreadRune implements the [io.RuneScanner] interface. func (r *Reader) UnreadRune() error { if r.i <= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:10:31 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
} func trimSpace(s string) string { i := 0 for i < len(s) && (s[i] == ' ' || s[i] == '\t') { i++ } s = s[i:] j := len(s) for j > 0 && (s[j-1] == ' ' || s[j-1] == '\t') { j-- } return s[:j] } func trimSpaceTabNewline(s string) string { i := 0 for i < len(s) && (s[i] == ' ' || s[i] == '\t' || s[i] == '\n') { i++ } s = s[i:] j := len(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0) -
src/image/jpeg/huffman.go
vals [maxNCodes]uint8 // minCodes[i] is the minimum code of length i, or -1 if there are no // codes of that length. minCodes [maxCodeLength]int32 // maxCodes[i] is the maximum code of length i, or -1 if there are no // codes of that length. maxCodes [maxCodeLength]int32 // valsIndices[i] is the index into vals of minCodes[i]. valsIndices [maxCodeLength]int32 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 6.3K bytes - Viewed (0) -
src/sort/sort.go
Let n = data.Len(). Assume n = 2^k. Plain merge sort performs log(n) = k iterations. On iteration i the algorithm merges 2^(k-i) blocks, each of size 2^i. Thus iteration i of merge sort performs: Calls to Less O(2^(k-i) * 2^i) = O(2^k) = O(2^log(n)) = O(n) Calls to Swap O(2^(k-i) * 2^i * log(2^i)) = O(2^k * i) = O(n*i) In total k = log(n) iterations are performed; so in total: Calls to Less O(log(n) * n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 10.1K bytes - Viewed (0)