- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 110 for S1 (0.03 sec)
-
src/runtime/map_benchmark_test.go
// long strings, same length, differ in first few // and last few bytes. m := make(map[string]bool) s1 := "foo" + strings.Repeat("-", 100) + "bar" s2 := "goo" + strings.Repeat("-", 100) + "ber" m[s1] = true m[s2] = true b.ResetTimer() for i := 0; i < b.N; i++ { _ = m[s1] } } type BigKey [3]int64 func BenchmarkBigKeyMap(b *testing.B) { m := make(map[BigKey]bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 09 16:41:16 UTC 2023 - 10.6K bytes - Viewed (0) -
src/log/slog/logger_test.go
} func (h discardHandler) WithGroup(name string) Handler { return h } // concat returns a new slice with the elements of s1 followed // by those of s2. The slice has no additional capacity. func concat[T any](s1, s2 []T) []T { s := make([]T, len(s1)+len(s2)) copy(s, s1) copy(s[len(s1):], s2) return s } // This is a simple benchmark. See the benchmarks subdirectory for more extensive ones.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 19.5K bytes - Viewed (0) -
src/archive/tar/reader_test.go
for j := 0; j < 6; j++ { var tr *Reader var s1, s2 string switch j { case 0: tr = NewReader(&reader{strings.NewReader(v.input)}) s1, s2 = "io.Reader", "auto" case 1: tr = NewReader(&reader{strings.NewReader(v.input)}) s1, s2 = "io.Reader", "manual" case 2: tr = NewReader(&readSeeker{strings.NewReader(v.input)}) s1, s2 = "io.ReadSeeker", "auto" case 3:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 21 21:14:38 UTC 2022 - 47.1K bytes - Viewed (0) -
src/internal/coverage/defs.go
// 06: v++ // 07: // comment // 08: if y == 0 { // 09: return x // 10: } // 11: return (x << 1) ^ (9 / y) // 12: } // 13: // 14: func Medium(q, r int) int { // 15: s1 := small(q, r) // 16: z += s1 // 17: s2 := small(r, q) // 18: w -= s2 // 19: return w + z // 20: } // // The meta-data blob for the single package above might look like the // following: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 14 12:51:16 UTC 2023 - 11.9K bytes - Viewed (0) -
pilot/pkg/model/sidecar.go
} } func canMergeServices(s1, s2 *Service) bool { // Hostname has been compared in the caller `appendSidecarServices`, so we donot need to compare again. if s1.Attributes.Namespace != s2.Attributes.Namespace { return false } if s1.Resolution != s2.Resolution { return false } // kuberneres service registry has been checked before if s1.Attributes.ServiceRegistry != s2.Attributes.ServiceRegistry {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 05 20:32:23 UTC 2024 - 38.4K bytes - Viewed (0) -
src/image/gif/reader_test.go
t.Fatal("EncodeAll:", err) } s0, s1 := new(runtime.MemStats), new(runtime.MemStats) runtime.GC() defer debug.SetGCPercent(debug.SetGCPercent(5)) runtime.ReadMemStats(s0) if _, err := Decode(buf); err != nil { t.Fatal("Decode:", err) } runtime.ReadMemStats(s1) if heapDiff := int64(s1.HeapAlloc - s0.HeapAlloc); heapDiff > 30<<20 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 16:15:54 UTC 2024 - 13.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Ascii.java
*/ public static boolean equalsIgnoreCase(CharSequence s1, CharSequence s2) { // Calling length() is the null pointer check (so do it before we can exit early). int length = s1.length(); if (s1 == s2) { return true; } if (length != s2.length()) { return false; } for (int i = 0; i < length; i++) { char c1 = s1.charAt(i); char c2 = s2.charAt(i); if (c1 == c2) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jul 19 15:43:07 UTC 2021 - 21.6K bytes - Viewed (0) -
test/live.go
//go:noescape func call27(func()) // concatstring slice should die on return var s1, s2, s3, s4, s5, s6, s7, s8, s9, s10 string func f28(b bool) { if b { printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) // ERROR "stack object .autotmp_[0-9]+ \[10\]string$" } printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) printstring(s1 + s2 + s3 + s4 + s5 + s6 + s7 + s8 + s9 + s10) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 18K bytes - Viewed (0) -
guava/src/com/google/common/base/Ascii.java
*/ public static boolean equalsIgnoreCase(CharSequence s1, CharSequence s2) { // Calling length() is the null pointer check (so do it before we can exit early). int length = s1.length(); if (s1 == s2) { return true; } if (length != s2.length()) { return false; } for (int i = 0; i < length; i++) { char c1 = s1.charAt(i); char c2 = s2.charAt(i); if (c1 == c2) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jul 19 15:43:07 UTC 2021 - 21.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)