Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for wasPartitioned (0.12 sec)

  1. src/sort/gen_sort_variants.go

    func pdqsort{{.FuncSuffix}}{{.TypeParam}}(data {{.DataType}}, a, b, limit int {{.ExtraParam}}) {
    	const maxInsertion = 12
    
    	var (
    		wasBalanced    = true // whether the last partitioning was reasonably balanced
    		wasPartitioned = true // whether the slice was already partitioned
    	)
    
    	for {
    		length := b - a
    
    		if length <= maxInsertion {
    			insertionSort{{.FuncSuffix}}(data, a, b {{.ExtraArg}})
    			return
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top