- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 278 for reuse (0.05 sec)
-
platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/LinePerThreadBufferingOutputStreamTest.groovy
def outstr = new LinePerThreadBufferingOutputStream(action) when: outstr.close() then: 1 * action.endOfStream(null) 0 * action._ } def "can reuse the output stream on the same thread after it has been closed"() { TextStream action = Mock() def outstr = new LinePerThreadBufferingOutputStream(action) when: outstr.write("text".bytes)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 08:51:13 UTC 2024 - 3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ListValueSnapshot.java
for (int i = 0; i < pos; i++) { newElements.add(elements.get(i)); } if (pos < list.size()) { // If we broke out of the comparison because there was a difference, we can reuse the snapshot of the new element if (newElement != null) { newElements.add(newElement); pos++; } // Anything left over only exists in the new list
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/allocator.go
limitations under the License. */ package runtime import ( "sync" ) // AllocatorPool simply stores Allocator objects to avoid additional memory allocations // by caching created but unused items for later reuse, relieving pressure on the garbage collector. // // Usage: // // memoryAllocator := runtime.AllocatorPool.Get().(*runtime.Allocator) // defer runtime.AllocatorPool.Put(memoryAllocator) // // A note for future: //
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 27 03:17:50 UTC 2022 - 2.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntry.java
* buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder} * implementations. * * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but * not its subclasses) can be reused when copied from one ImmutableMap to another. * * @author Louis Wasserman
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 4.4K bytes - Viewed (0) -
platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/service/scopes/Scope.java
*/ interface UserHome extends Global {} /** * These services are reused across build sessions. * <p> * Generally, one regular Gradle invocation is conceptually a session. * However, the GradleBuild task is currently implemented in such a way that it uses a discrete session.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 10 14:28:48 UTC 2024 - 3.8K bytes - Viewed (0) -
platforms/software/version-control/src/main/java/org/gradle/vcs/internal/DefaultVcsMappings.java
return this; } // Ensure that at most one action that may have access to the mutable state of the build runs at a given time // TODO - move this to a better home and reuse private static class DslAccessRule implements Action<VcsMapping> { private final Object lock; private final Action<? super VcsMapping> delegate;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 3.4K bytes - Viewed (0) -
internal/bpool/bpool.go
// Get gets a []byte from the BytePool, or creates a new one if none are // available in the pool. func (bp *BytePoolCap) Get() (b []byte) { if bp == nil { return nil } select { case b = <-bp.c: // reuse existing buffer default: // create new aligned buffer if bp.wcap > 0 { b = reedsolomon.AllocAligned(1, bp.wcap)[0][:bp.w] } else { b = reedsolomon.AllocAligned(1, bp.w)[0] } } return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Apr 19 16:44:59 UTC 2024 - 2.6K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionArtifactFilter.java
Predicate<Artifact> predArtifactId = a -> artifactId.matches(createPathProxy(a.getArtifactId())); return predGroupId.and(predArtifactId); } /** * In order to reuse the glob matcher from the filesystem, we need * to create Path instances. Those are only used with the toString method. * This hack works because the only system-dependent thing is the path
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Aug 29 15:25:58 UTC 2023 - 3K bytes - Viewed (0) -
platforms/core-runtime/build-state/src/main/java/org/gradle/internal/session/CrossBuildSessionState.java
* <p> * Generally, one regular Gradle invocation is conceptually a session. * However, the GradleBuild task is currently implemented in such a way that it uses a discrete session. * Having the GradleBuild task reuse the outer session is complicated because it <a href="https://github.com/gradle/gradle/issues/4559">may use a different Gradle user home</a>. * <p> * This set of services is added as a parent of each build session scope. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 12:34:44 UTC 2024 - 3.4K bytes - Viewed (0) -
pkg/apis/node/validation/validation.go
return allErrs } func validateOverhead(overhead *node.Overhead, fldPath *field.Path) field.ErrorList { // reuse the ResourceRequirements validation logic return corevalidation.ValidateResourceRequirements(&core.ResourceRequirements{Limits: overhead.PodFixed}, nil, fldPath, corevalidation.PodValidationOptions{}) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 10 19:08:24 UTC 2022 - 3.2K bytes - Viewed (0)