- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for maxswap (0.3 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) -
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) -
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) -
maven-core/src/main/java/org/apache/maven/project/ProjectModelResolver.java
* declared in the POM. * */ public class ProjectModelResolver implements ModelResolver { private static final int MAX_CAP = 0x7fff; private final RepositorySystemSession session; private final RequestTrace trace; private final String context = "project"; private List<RemoteRepository> repositories;
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Apr 25 14:13:36 UTC 2024 - 15.8K bytes - Viewed (0) -
build-logic/performance-testing/src/main/groovy/gradlebuild.performance-templates.gradle
new File(projectDirectory, "gradle.properties") << "\norg.gradle.workers.max=${maxWorkers}\n" } private void setMaxHeap(File projectDirectory, String maxHeap) { new File(projectDirectory, "gradle.properties") << "\norg.gradle.jvmargs=-Xmx${maxHeap}\n" } private void setParallel(File projectDirectory, boolean parallel) { new File(projectDirectory, "gradle.properties") << "\norg.gradle.parallel=${parallel}\n"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 15:43:39 UTC 2024 - 19.5K bytes - Viewed (0) -
platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonIntegrationTest.groovy
def "interesting worker daemon fork options are honored"() { OptionsVerifier optionsVerifier = new OptionsVerifier(file('process.json')) optionsVerifier.with { minHeap("128m") maxHeap("128m") systemProperty("foo", "bar") jvmArgs("-Dbar=baz") defaultCharacterEncoding("UTF-8") enableAssertions() environmentVariable("foo", "bar")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:36:27 UTC 2023 - 8.6K bytes - Viewed (0)