- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 524 for allocs (0.07 seconds)
-
src/bytes/bytes_test.go
func TestEqual(t *testing.T) { // Run the tests and check for allocation at the same time. allocs := testing.AllocsPerRun(10, func() { for _, tt := range compareTests { eql := Equal(tt.a, tt.b) if eql != (tt.i == 0) { t.Errorf(`Equal(%q, %q) = %v`, tt.a, tt.b, eql) } } }) if allocs > 0 { t.Errorf("Equal allocated %v times", allocs) } } func TestEqualExhaustive(t *testing.T) { var size = 128
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Dec 23 23:54:14 GMT 2025 - 62.9K bytes - Click Count (0) -
src/bytes/buffer_test.go
readBytes, _ := buf.Read(tmp) yBytes := Repeat(y, growLen) allocs := testing.AllocsPerRun(100, func() { buf.Grow(growLen) buf.Write(yBytes) }) // Check no allocation occurs in write, as long as we're single-threaded. if allocs != 0 { t.Errorf("allocation occurred during write") } // Check that buffer has correct data.
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Nov 14 19:01:17 GMT 2025 - 19.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
double avgAllocTimeNs = totalAllocTime.get() / (double) allocations.get(); double avgReleaseTimeNs = totalReleaseTime.get() / (double) releases.get(); System.out.printf("Buffer Cache Performance: %d allocs, %d releases in %.2f ms%n", allocations.get(), releases.get(), overallTimeMs); System.out.printf(" Avg allocation time: %.2f ns%n", avgAllocTimeNs);
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 15.3K bytes - Click Count (0) -
cmd/storage-rest-server.go
// If format.json is available and request sent the right disk-id, we allow the request return true } // checkID - check if the disk-id in the request corresponds to the underlying disk. func (s *storageRESTServer) checkID(wantID string) bool { if s.getStorage() == nil { return false } if wantID == "" { // Request sent empty disk-id, we allow the request
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue May 27 15:19:03 GMT 2025 - 45.7K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/RobotsTxtTest.java
// Test allows method when no directives are set RobotsTxt robotsTxt = new RobotsTxt(); // Should return true when no directives match assertTrue(robotsTxt.allows("/path", "MyBot")); assertTrue(robotsTxt.allows("/admin", "GoogleBot")); } public void test_allowsWithAllowedPath() { // Test allows method with allowed pathCreated: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Thu Nov 13 13:29:22 GMT 2025 - 14.4K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
} /** * Creates a custom filter that allows only the specified class patterns. * <p> * Patterns can be exact class names or use wildcards with '*' at the end. * For example: "com.example.*" allows all classes in the com.example package. * </p> * * @param allowedPatterns the patterns of classes to allow * @return an ObjectInputFilter configured with the specified patternsCreated: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 9K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java
* 2. If both Allow and Disallow patterns match with the same length, Allow takes precedence * 3. If no pattern matches, the path is allowed by default * * @param path the path to check * @return true if the path is allowed, false otherwise */ public boolean allows(final String path) { PathPattern longestAllowMatch = null;Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 18.5K bytes - Click Count (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/RobotsTxtHelperTest.java
assertTrue(robotsTxt.allows("/ccc", "Crawler")); assertTrue(robotsTxt.allows("/ddd", "Crawler")); assertTrue(robotsTxt.allows("/aaa", "Crawler/1.0")); assertFalse(robotsTxt.allows("/bbb", "Crawler/1.0")); assertTrue(robotsTxt.allows("/ccc", "Crawler/1.0")); assertTrue(robotsTxt.allows("/ddd", "Crawler/1.0"));
Created: Sat Dec 20 11:21:39 GMT 2025 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 20.6K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/PrefixedObjectValueSource.java
* prefixes and setting whether the {@link PrefixedValueSourceWrapper} allows * unprefixed expressions. * @param possiblePrefixes The possible prefixes. * @param root The root of the graph. * @param allowUnprefixedExpressions if we allow undefined expressions or not. */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/ACE.java
public static final int FLAGS_INHERITED = 0x10; boolean allow; int flags; int access; SID sid; /** * Returns true if this ACE is an allow ACE and false if it is a deny ACE. * @return true if this is an allow ACE, false if it is a deny ACE */ public boolean isAllow() { return allow; } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.8K bytes - Click Count (0)