Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,602 for ncalls (0.23 sec)

  1. test/clearfat.go

    const ntest = 1100
    
    func main() {
    	var decls, calls bytes.Buffer
    
    	for i := 1; i <= ntest; i++ {
    		s := strconv.Itoa(i)
    		decls.WriteString(strings.Replace(decl, "$", s, -1))
    		calls.WriteString(strings.Replace("poison$()\n\tclearfat$()\n\t", "$", s, -1))
    	}
    
    	program = strings.Replace(program, "$DECLS", decls.String(), 1)
    	program = strings.Replace(program, "$CALLS", calls.String(), 1)
    	fmt.Print(program)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 31 15:08:27 UTC 2014
    - 1.1K bytes
    - Viewed (0)
  2. src/sort/sort.go

    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)
    Calls to Swap O(n + 2*n + 3*n + ... + (k-1)*n + k*n)
       = O((k/2) * k * n) = O(n * k^2) = O(n * log^2(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)
  3. pilot/pkg/networking/core/peer_authentication_simulation_test.go

    				{
    					Name:   "plaintext",
    					Call:   mkCall(8000, simulation.Plaintext),
    					Result: simulation.Result{Error: simulation.ErrNoFilterChain},
    				},
    				{
    					Name:   "mtls",
    					Call:   mkCall(8000, simulation.MTLS),
    					Result: simulation.Result{ClusterMatched: "InboundPassthroughCluster"},
    				},
    			},
    		},
    		{
    			name:   "global permissive",
    			config: paPermissive,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/log/slog/logger.go

    // Before [SetDefault] is called, slog top-level logging functions call the default [log.Logger].
    // In that mode, SetLogLoggerLevel sets the minimum level for those calls.
    // By default, the minimum level is Info, so calls to [Debug]
    // (as well as top-level logging calls at lower levels)
    // will not be passed to the log.Logger. After calling
    //
    //	slog.SetLogLoggerLevel(slog.LevelDebug)
    //
    // calls to [Debug] will be passed to the log.Logger.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 18:26:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/stackcheck_test.go

        %d bytes over limit
    `, 1008-limit),
    		"main.startChain": fmt.Sprintf(
    			`main.startChain<0>
        grows 32 bytes, calls main.chain0<0>
            grows 48 bytes, calls main.chainEnd<0>
                grows 1008 bytes
                %d bytes over limit
        grows 32 bytes, calls main.chain2<0>
            grows 80 bytes, calls main.chainEnd<0>
                grows 1008 bytes
                %d bytes over limit
    `, 32+48+1008-limit, 32+80+1008-limit),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer_test.go

    				})
    			}())
    
    			for i, invocation := range tc.calls {
    				decision, reason, err := frontend.Authorize(context.TODO(), invocation.attributes)
    				if decision != invocation.expected.decision {
    					t.Errorf("(call %d of %d) expected decision %v, got %v", i+1, len(tc.calls), invocation.expected.decision, decision)
    				}
    				if reason != invocation.expected.reason {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. src/internal/singleflight/singleflight_test.go

    }
    
    func TestDoDupSuppress(t *testing.T) {
    	var g Group
    	var wg1, wg2 sync.WaitGroup
    	c := make(chan string, 1)
    	var calls atomic.Int32
    	fn := func() (any, error) {
    		if calls.Add(1) == 1 {
    			// First invocation.
    			wg1.Done()
    		}
    		v := <-c
    		c <- v // pump; make available for any future calls
    
    		time.Sleep(10 * time.Millisecond) // let more goroutines enter Do
    
    		return v, nil
    	}
    
    	const n = 10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 22:21:50 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

              }
              else -> null
            }
          }
    
        // If the call's connection wasn't released, reuse it. We don't call connectionAcquired() here
        // because we already acquired it.
        if (connectionUser.candidateConnection() != null) {
          check(toClose == null)
          return ReusePlan(candidate)
        }
    
        // The call's connection was released.
        toClose?.closeQuietly()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * This can be invoked more than 1 time for a single [Call]. For example, if the response
       * to the [Call.request] is a redirect to a different address.
       */
      open fun connectionAcquired(
        call: Call,
        connection: Connection,
      ) {
      }
    
      /**
       * Invoked after a connection has been released for the `call`.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  10. test/fixedbugs/issue49512.go

    	return 0, 0
    }
    
    type C struct {
    	calls []func(int) (int, int)
    }
    
    func makeC() Funcs {
    	return &C{}
    }
    
    func (c *C) Add(fn func(int) (int, int)) Funcs {
    	c.calls = append(c.calls, fn)
    	return c
    }
    
    func (c *C) Call() {
    	for _, fn := range c.calls {
    		fn(0)
    	}
    }
    
    type Funcs interface {
    	Add(func(int) (int, int)) Funcs
    	Call()
    }
    
    func main() {
    	s := &S{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 11 04:02:33 UTC 2021
    - 809 bytes
    - Viewed (0)
Back to top