- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for maxswap (0.21 sec)
-
src/sort/sort_test.go
desc string t *testing.T data []int maxswap int // number of swaps allowed ncmp, nswap int } func (d *testingData) Len() int { return len(d.data) } func (d *testingData) Less(i, j int) bool { d.ncmp++ return d.data[i] < d.data[j] } func (d *testingData) Swap(i, j int) { if d.nswap >= d.maxswap { d.t.Fatalf("%s: used %d swaps sorting slice of %d", d.desc, d.nswap, len(d.data))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:41:04 UTC 2024 - 16.9K bytes - Viewed (0) -
platforms/core-execution/workers/src/testFixtures/groovy/org/gradle/workers/fixtures/OptionsVerifier.groovy
OptionsVerifier(File processJsonFile) { this.processJsonFile = processJsonFile } void minHeap(String value) { options.add(new MinHeap(value)) } void maxHeap(String value) { options.add(new MaxHeap(value)) } void jvmArgs(String value) { options.add(new JvmArg(value)) } void systemProperty(String name, String value) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 6.2K bytes - Viewed (0) -
src/reflect/example_test.go
return []reflect.Value{in[1], in[0]} } // makeSwap expects fptr to be a pointer to a nil function. // It sets that pointer to a new function created with MakeFunc. // When the function is invoked, reflect turns the arguments // into Values, calls swap, and then turns swap's result slice // into the values returned by the new function. makeSwap := func(fptr any) { // fptr is a pointer to a function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 19 20:04:36 UTC 2022 - 4.5K bytes - Viewed (0) -
platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonExpirationTest.groovy
} private JavaForkOptions javaForkOptions(String minHeap, String maxHeap, List<String> jvmArgs) { def options = TestFiles.execFactory().newJavaForkOptions() options.workingDir = systemSpecificAbsolutePath("foo") options.minHeapSize = minHeap options.maxHeapSize = maxHeap options.jvmArgs = jvmArgs return options }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 21 14:56:11 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js
if (typeof...
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 13 04:21:06 UTC 2020 - 65.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
case 2: return 1; // The lone element in the maxHeap is the maximum. default: // The max element must sit on the first level of the maxHeap. It is // actually the *lesser* of the two from the maxHeap's perspective. return (maxHeap.compareElements(1, 2) <= 0) ? 1 : 2; } } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (1) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
case 2: return 1; // The lone element in the maxHeap is the maximum. default: // The max element must sit on the first level of the maxHeap. It is // actually the *lesser* of the two from the maxHeap's perspective. return (maxHeap.compareElements(1, 2) <= 0) ? 1 : 2; } } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/HealthExpirationStrategy.java
? "The daemon will restart for the next build, which may increase subsequent build times" : "The memory settings for this project must be adjusted to avoid this failure"; String maxHeap = heapStats.isValid() ? NumberUtil.formatBytes(heapStats.getMaxSizeInBytes()) : "unknown"; String maxMetaspace = nonHeapStats.isValid() ? NumberUtil.formatBytes(nonHeapStats.getMaxSizeInBytes()) : "unknown";
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 06:47:38 UTC 2024 - 7.9K bytes - Viewed (1) -
src/regexp/syntax/regexp.go
b.WriteString(`\x{`) b.WriteString(strconv.FormatInt(int64(r), 16)) b.WriteString(`}`) } } // MaxCap walks the regexp to find the maximum capture index. func (re *Regexp) MaxCap() int { m := 0 if re.Op == OpCapture { m = re.Cap } for _, sub := range re.Sub { if n := sub.MaxCap(); m < n { m = n } } return m }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:51 UTC 2024 - 11.6K bytes - Viewed (0) -
src/sort/zsortinterface.go
// [shortestNinther,∞): uses the Tukey ninther method. func choosePivot(data Interface, a, b int) (pivot int, hint sortedHint) { const ( shortestNinther = 50 maxSwaps = 4 * 3 ) l := b - a var ( swaps int i = a + l/4*1 j = a + l/4*2 k = a + l/4*3 ) if l >= 8 { if l >= shortestNinther {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 13 20:16:24 UTC 2022 - 11.2K bytes - Viewed (0)