- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 89 for expensive (0.3 sec)
-
guava-gwt/test/com/google/common/GwtTestSuite.java
import junit.framework.Test; import junit.framework.TestCase; /** * Runs all _gwt tests. Grouping them into a suite is much faster than running each as a one-test * "suite," as the per-suite setup is expensive. */ public class GwtTestSuite extends TestCase { public static Test suite() throws IOException { GWTTestSuite suite = new GWTTestSuite(); for (ClassInfo info :
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Jan 18 02:54:30 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
*/ @NullUnmarked public class MinMaxPriorityQueueBenchmark { @Param private ComparatorType comparator; // TODO(kevinb): add 1000000 back when we have the ability to throw // NotApplicableException in the expensive comparator case. @Param({"100", "10000"}) private int size; @Param private HeapType heap; private Queue<Integer> queue; private final Random random = new Random(); @BeforeExperiment
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 4.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/cache/package-info.java
* <li>DISABLED - No caching performed</li> * </ul> * <p> * Example usage: * <pre> * RequestCache cache = cacheFactory.createCache(); * Result result = cache.request(myRequest, req -> { * // Expensive operation to compute result * return computedResult; * }); * </pre> * <p> * The package also provides support for batch operations through {@link org.apache.maven.api.cache.BatchRequestException}
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 2.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ComparisonChain.java
* inputs' {@link Comparable#compareTo compareTo} and {@link Comparator#compare compare} methods as * soon as one of them returns a nonzero result. This optimization is typically important only in * the presence of expensive {@code compareTo} and {@code compare} implementations. * * <p>See the Guava User Guide article on <a href= * "https://github.com/google/guava/wiki/CommonObjectUtilitiesExplained#comparecompareto">{@code
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 11.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt
* [logCloseableLeak]. */ open fun getStackTraceForCloseable(closer: String): Any? = when { logger.isLoggable(Level.FINE) -> Throwable(closer) // These are expensive to allocate. else -> null } open fun logCloseableLeak( message: String, stackTrace: Any?, ) { var logMessage = message if (stackTrace == null) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 28 07:33:49 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/CharEscaper.java
int charsLeft = slen - lastEscape; if (charsLeft > 0) { int sizeNeeded = destIndex + charsLeft; if (destSize < sizeNeeded) { // Regrow and copy, expensive! No padding as this is the final copy. dest = growBuffer(dest, destIndex, sizeNeeded); } s.getChars(lastEscape, slen, dest, destIndex); destIndex = sizeNeeded; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0) -
guava/src/com/google/common/escape/CharEscaper.java
int charsLeft = slen - lastEscape; if (charsLeft > 0) { int sizeNeeded = destIndex + charsLeft; if (destSize < sizeNeeded) { // Regrow and copy, expensive! No padding as this is the final copy. dest = growBuffer(dest, destIndex, sizeNeeded); } s.getChars(lastEscape, slen, dest, destIndex); destIndex = sizeNeeded; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 15:45:16 UTC 2025 - 6.7K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
} } private String maskSensitiveData(String data) { if (data == null || !maskSensitiveData) { return data; } // Performance optimization: skip expensive regex for high-frequency logging if (enableHighPerformanceMode) { // Fast path: only check for obvious patterns without regex String lowerData = data.toLowerCase();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
docs/contribute/concurrency.md
Blocking APIs may be inefficient because you hold a thread idle while waiting on the network. Threads are expensive because they have both a memory overhead and a context-switching overhead. #### Framed protocols
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 16:35:36 UTC 2022 - 7K bytes - Viewed (0) -
guava/src/com/google/common/collect/RangeMap.java
* same value those two ranges will be coalesced. * * <p><b>Note:</b> coalescing requires calling {@code .equals()} on any connected values, which * may be expensive depending on the value type. Using this method on range maps with large values * such as {@link Collection} types is discouraged. * * @since 22.0 */ void putCoalescing(Range<K> range, V value);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 7.6K bytes - Viewed (0)