Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 536 for qsort (0.05 sec)

  1. src/slices/sort_test.go

    		n /= 100
    	}
    	data := make([]int, n)
    	for i := 0; i < len(data); i++ {
    		data[i] = rand.Intn(100)
    	}
    	if IsSorted(data) {
    		t.Fatalf("terrible rand.rand")
    	}
    	Sort(data)
    	if !IsSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    type intPair struct {
    	a, b int
    }
    
    type intPairs []intPair
    
    // Pairs compare on a only.
    func intPairCmp(x, y intPair) int {
    	return x.a - y.a
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  2. docs/metrics/prometheus/grafana/node/minio-node.json

            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "10.4.0",
          "targets": [
            {
              "datasource": {
                "type": "prometheus",
                "uid": "${DS_PROMETHEUS}"
              },
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 13:24:37 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    	}
    
    	// since Priorities should range from 0 (highest) to N (lowest) without skipping.
    	// 2. adjust the priorities in order
    	// 2.1 sort all priorities in increasing order.
    	priorities := []int{}
    	for priority := range priorityMap {
    		priorities = append(priorities, priority)
    	}
    	sort.Ints(priorities)
    	// 2.2 adjust LocalityLbEndpoints priority
    	// if the index and value of priorities array is not equal.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. pkg/config/analysis/analyzers/sidecar/util.go

    // limitations under the License.
    
    package sidecar
    
    import (
    	"sort"
    
    	"istio.io/istio/pkg/config/resource"
    )
    
    func getNames(entries []*resource.Instance) []string {
    	names := make([]string, 0, len(entries))
    	for _, rs := range entries {
    		names = append(names, string(rs.Metadata.FullName.Name))
    	}
    	sort.Strings(names)
    	return names
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 884 bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    func (g *Graph) SortNodes(cum bool, visualMode bool) {
    	// Sort nodes based on requested mode
    	switch {
    	case visualMode:
    		// Specialized sort to produce a more visually-interesting graph
    		g.Nodes.Sort(EntropyOrder)
    	case cum:
    		g.Nodes.Sort(CumNameOrder)
    	default:
    		g.Nodes.Sort(FlatNameOrder)
    	}
    }
    
    // SelectTopNodePtrs returns a set of the top maxNodes *Node in a graph.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
  6. src/cmd/fix/main.go

    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n")
    	flag.PrintDefaults()
    	fmt.Fprintf(os.Stderr, "\nAvailable rewrites are:\n")
    	sort.Sort(byName(fixes))
    	for _, f := range fixes {
    		if f.disabled {
    			fmt.Fprintf(os.Stderr, "\n%s (disabled)\n", f.name)
    		} else {
    			fmt.Fprintf(os.Stderr, "\n%s\n", f.name)
    		}
    		desc := strings.TrimSpace(f.desc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. pkg/config/analysis/analyzers/telemetry/util.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    package telemetry
    
    import (
    	"sort"
    
    	"istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/config/analysis"
    	"istio.io/istio/pkg/config/analysis/analyzers/util"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/config/schema/gvk"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. src/net/lookup_windows_test.go

    		}
    		if len(txt) == 0 {
    			t.Fatalf("no results")
    		}
    		expected, err := nslookupTXT(server)
    		if err != nil {
    			t.Skipf("skipping failed nslookup %s test: %s", server, err)
    		}
    		slices.Sort(expected)
    		slices.Sort(txt)
    		if !reflect.DeepEqual(expected, txt) {
    			t.Errorf("different results %s:\texp:%v\tgot:%v", server, toJson(expected), toJson(txt))
    		}
    	})
    }
    
    func TestLookupLocalPTR(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	verifiedWorkloads := make([]*ZtunnelWorkload, 0, len(zDump.Workloads))
    	for _, wl := range zDump.Workloads {
    		if filter.Verify(wl) {
    			verifiedWorkloads = append(verifiedWorkloads, wl)
    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/sym.go

    		// that can be scheduled independently. We need to reorder those
    		// symbols reliably. Sort by name but use a stable sort, so that
    		// any original entries with the same name (all DWARFVAR symbols
    		// have empty names but different relocation sets) are not shuffled.
    		// TODO: Find a better place and optimize to only sort TOC symbols.
    		sort.SliceStable(ctxt.Data, func(i, j int) bool {
    			return ctxt.Data[i].Name < ctxt.Data[j].Name
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top