Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for ptrsort (0.17 sec)

  1. src/slices/sort_benchmark_test.go

    					n: i * 11 % size,
    				}
    			}
    			cmpFunc := func(a, b *myStruct) int {
    				if n := strings.Compare(a.a, b.a); n != 0 {
    					return n
    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    		if err != nil {
    			return nil, err
    		}
    	}
    
    	sort.SliceStable(toSort, func(i, j int) bool {
    		if ii := index(order, toSort[i], mergeKey, kind); ii >= 0 {
    			if ij := index(order, toSort[j], mergeKey, kind); ij >= 0 {
    				return ii < ij
    			}
    		}
    		return true
    	})
    	toSort = append(toSort, toDelete...)
    	return toSort, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/nilcheck.go

    				// we've recorded in the unnecessary map is now obsolete.
    				unnecessary.clear()
    			}
    
    			// Find any pointers that this op is guaranteed to fault on if nil.
    			var ptrstore [2]*Value
    			ptrs := ptrstore[:0]
    			if opcodeTable[v.Op].faultOnNilArg0 && (faultOnLoad || v.Type.IsMemory()) {
    				// On AIX, only writing will fault.
    				ptrs = append(ptrs, v.Args[0])
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. src/sort/sort.go

    // ergonomic and runs faster.
    func Sort(data Interface) {
    	n := data.Len()
    	if n <= 1 {
    		return
    	}
    	limit := bits.Len(uint(n))
    	pdqsort(data, 0, n, limit)
    }
    
    type sortedHint int // hint for pdqsort when choosing the pivot
    
    const (
    	unknownHint sortedHint = iota
    	increasingHint
    	decreasingHint
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. src/slices/sort.go

    		}
    	}
    	// i == j, cmp(x[i-1], target) < 0, and cmp(x[j], target) (= cmp(x[i], target)) >= 0  =>  answer is i.
    	return i, i < n && cmp(x[i], target) == 0
    }
    
    type sortedHint int // hint for pdqsort when choosing the pivot
    
    const (
    	unknownHint sortedHint = iota
    	increasingHint
    	decreasingHint
    )
    
    // xorshift paper: https://www.jstatsoft.org/article/view/v008i14/xorshift.pdf
    type xorshift uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. istioctl/pkg/describe/describe.go

    	fmt.Fprintf(writer, "Effective PeerAuthentication:\n")
    	fmt.Fprintf(writer, "   Workload mTLS mode: %s\n", pa.Mode.String())
    	if len(pa.PerPort) != 0 {
    		fmt.Fprintf(writer, "   Port Level mTLS mode:\n")
    		for port, mode := range pa.PerPort {
    			fmt.Fprintf(writer, "      %d: %s\n", port, mode.String())
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  7. hack/update-vendor.sh

          go mod edit -require "${dep}@v0.0.0"
        done
      )
    done < "${tidy_unordered}"
    
    kube::log::status "go.mod: tidying" >&11
    for repo in $(tsort "${TMP_DIR}/tidy_deps.txt"); do
      (
        cd "${KUBE_ROOT}/staging/src/${repo}"
        echo "=== tidying ${repo}"
    
        # prune replace directives that pin to the naturally selected version.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:08 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. pkg/ctrlz/assets/static/js/prism-1.14.0.min.js

    |reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|[\s;|&])/,lookbehind:...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. pilot/pkg/security/authn/policy_applier_test.go

    								Mode: v1beta1.PeerAuthentication_MutualTLS_UNSET,
    							},
    							100: {},
    						},
    					},
    				},
    			},
    			want: MergedPeerAuthentication{
    				Mode: model.MTLSStrict,
    				PerPort: map[uint32]model.MutualTLSMode{
    					80:  model.MTLSDisable,
    					90:  model.MTLSStrict,
    					100: model.MTLSStrict,
    				},
    			},
    		},
    	}
    	for _, tt := range tests {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 60.2K bytes
    - Viewed (0)
  10. src/encoding/json/decode_test.go

    		t.Run(tt.Name, func(t *testing.T) {
    			ptrstr := fmt.Sprintf("%v", tt.ptr)
    			err := Unmarshal([]byte(tt.in), tt.ptr) // tt.ptr edited here
    			if err != nil {
    				t.Errorf("%s: Unmarshal error: %v", tt.Where, err)
    			}
    			if !reflect.DeepEqual(tt.ptr, tt.out) {
    				t.Errorf("%s: Unmarshal(%#q, %T):\n\tgot:  %v\n\twant: %v", tt.Where, tt.in, ptrstr, tt.ptr, tt.out)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
Back to top