- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for useless3 (0.24 sec)
-
internal/ringbuffer/ring_buffer_benchmark_test.go
buf := make([]byte, 512) b.ResetTimer() for i := 0; i < b.N; i++ { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) go func() { for { rb.Read(buf) } }() b.ResetTimer()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0) -
src/syscall/dirent.go
if !ok || namoff+namlen > uint64(len(rec)) { break } name := rec[namoff : namoff+namlen] for i, c := range name { if c == 0 { name = name[:i] break } } // Check for useless names before allocating a string. if string(name) == "." || string(name) == ".." { continue } max-- count++ names = append(names, string(name)) } return origlen - len(buf), count, names
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:13:24 UTC 2024 - 2.4K bytes - Viewed (0) -
src/os/dir_unix.go
if !ok || namoff+namlen > uint64(len(rec)) { break } name := rec[namoff : namoff+namlen] for i, c := range name { if c == 0 { name = name[:i] break } } // Check for useless names before allocating a string. if string(name) == "." || string(name) == ".." { continue } if n > 0 { // see 'n == 0' comment above n-- } if mode == readdirName {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:11:45 UTC 2024 - 4.8K bytes - Viewed (0) -
src/runtime/alg.go
func strhashFallback(a unsafe.Pointer, h uintptr) uintptr { x := (*stringStruct)(a) return memhashFallback(x.str, h, uintptr(x.len)) } // NOTE: Because NaN != NaN, a map can contain any // number of (mostly useless) entries keyed with NaNs. // To avoid long hash chains, we assign a random number // as the hash value for a NaN. func f32hash(p unsafe.Pointer, h uintptr) uintptr { f := *(*float32)(p) switch {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 13.6K bytes - Viewed (0) -
src/math/rand/rand.go
// in the half-open interval [0,n). func (r *Rand) Perm(n int) []int { m := make([]int, n) // In the following loop, the iteration when i=0 always swaps m[0] with m[0]. // A change to remove this useless iteration is to assign 1 to i in the init // statement. But Perm also effects r. Making this change will affect // the final state of r. So this change can't be made for compatibility // reasons for Go 1.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
pilot/pkg/model/gateway.go
// While we can use the same RDS route name for two servers (say HTTP and HTTPS) exposing the same set of hosts on // different ports, the optimization (one RDS instead of two) could quickly become useless the moment the set of // hosts on the two servers start differing -- necessitating the need for two different RDS routes. func gatewayRDSRouteName(server *networking.Server, portNumber uint32, cfg config.Config) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 26K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/run.go
iptV, ipt6V *dep.IptablesVersion, proxyUID, proxyGID string, dnsServersV4 []string, dnsServersV6 []string, captureAllDNS bool, ownerGroupsFilter config.InterceptFilter, ) { // TODO BML drop "UDPRuleApplier", it is a largely useless type. // we do not need a unique type just to apply UDP iptables rules f := UDPRuleApplier{ iptables: iptables, ext: ext, ops: ops, table: constants.NAT,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 03:53:23 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/scheduler/framework/types.go
WildCard GVK = "*" ) type ClusterEventWithHint struct { Event ClusterEvent // QueueingHintFn is executed for the plugin rejected by this plugin when the above Event happens, // and filters out events to reduce useless retry of Pod's scheduling. // It's an optional field. If not set, // the scheduling of Pods will be always retried with backoff when this Event happens. // (the same as Queue) QueueingHintFn QueueingHintFn }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 19:28:17 UTC 2024 - 36.7K bytes - Viewed (0) -
pkg/scheduler/framework/interface.go
Plugin // EventsToRegister returns a series of possible events that may cause a Pod // failed by this plugin schedulable. Each event has a callback function that // filters out events to reduce useless retry of Pod's scheduling. // The events will be registered when instantiating the internal scheduling queue, // and leveraged to build event handlers dynamically.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 35.4K bytes - Viewed (0) -
pkg/features/kube_features.go
// owner: @sanposhiho // kep: http://kep.k8s.io/4247 // beta: v1.28 // // Enables the scheduler's enhancement called QueueingHints, // which benefits to reduce the useless requeueing. SchedulerQueueingHints featuregate.Feature = "SchedulerQueueingHints" // owner: @atosatto @yuanchen8911 // kep: http://kep.k8s.io/3902 // beta: v1.29 //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 22:51:23 UTC 2024 - 45.2K bytes - Viewed (0)