Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Overhead (0.05 sec)

  1. src/test/java/org/codelibs/fess/helper/DataIndexHelperTest.java

                private static final long serialVersionUID = 1L;
    
                @Override
                public int getCrawlingThreadCount() {
                    return 1; // Reduced from 2 to minimize thread overhead
                }
    
                @Override
                public String getIndexFieldConfigId() {
                    return "config_id";
                }
    
                @Override
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            assertTrue(response instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Test OVERHEAD constant value")
        void testOverheadConstant() {
            assertEquals(72, Smb2QueryDirectoryResponse.OVERHEAD);
            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 8, Smb2QueryDirectoryResponse.OVERHEAD);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with buffer boundary conditions")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

       * intended to be used as a metric: smaller headers are more efficient to encode and transmit.
       */
      fun byteCount(): Long {
        // Each header name has 2 bytes of overhead for ': ' and every header value has 2 bytes of
        // overhead for '\r\n'.
        var result = (namesAndValues.size * 2).toLong()
    
        for (i in 0 until namesAndValues.size) {
          result += namesAndValues[i].length.toLong()
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                outputBufferLengthField.setAccessible(true);
                int actualOutputBufferLength = (int) outputBufferLengthField.get(request);
                int expectedLength = (Math.min(65536, 65536) - Smb2QueryInfoResponse.OVERHEAD) & ~0x7;
                assertEquals(expectedLength, actualOutputBufferLength);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            assertTrue(resp instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Should return correct OVERHEAD constant value")
        void testOverheadConstant() {
            // Then
            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 16, Smb2ReadResponse.OVERHEAD);
        }
    
        @Test
        @DisplayName("Should initially have zero data length")
        void testInitialDataLength() {
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                assertArrayEquals(newFileId, Arrays.copyOfRange(buffer, 16, 32));
            }
    
            @Test
            @DisplayName("Should maintain constant overhead")
            void testOverheadConstant() {
                assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 48, Smb2WriteRequest.OVERHEAD);
            }
    
            @Test
            @DisplayName("Should handle boundary conditions")
            void testBoundaryConditions() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            this.maxReadSize =
                    Math.min(maxBufferSize - Smb2ReadResponse.OVERHEAD, Math.min(tc.getConfig().getReceiveBufferSize(), this.maxReadSize))
                            & ~0x7;
            this.maxWriteSize =
                    Math.min(maxBufferSize - Smb2WriteRequest.OVERHEAD, Math.min(tc.getConfig().getSendBufferSize(), this.maxWriteSize)) & ~0x7;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            assertTrue(response instanceof ServerMessageBlock2);
        }
    
        @Test
        @DisplayName("Test OVERHEAD constant value")
        void testOverheadConstant() {
            assertEquals(72, Smb2QueryInfoResponse.OVERHEAD);
            assertEquals(Smb2Constants.SMB2_HEADER_LENGTH + 8, Smb2QueryInfoResponse.OVERHEAD);
        }
    
        @ParameterizedTest
        @CsvSource({ "1, 6", // SMB2_0_INFO_FILE, FILE_INTERNAL_INFO
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/CriticalPerformanceTest.java

            System.out.printf("  Avg release time: %.2f ns%n", avgReleaseTimeNs);
    
            // Verify O(1) performance - should be reasonably fast (allowing for JVM overhead)
            assertTrue(avgAllocTimeNs < 10000, "Average allocation should be under 10000ns (O(1) performance)");
            assertTrue(avgReleaseTimeNs < 10000, "Average release should be under 10000ns (O(1) performance)");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  10. README.md

    - **Memory efficient** - Specialized collections like `LruHashMap` and `ArrayMap` for memory-conscious applications
    - **Java 21 features** - Switch expressions and pattern matching for reduced overhead
    
    ## 🧪 Building and Testing
    
    ### Development Setup
    ```bash
    # Clone the repository
    git clone https://github.com/codelibs/corelib.git
    cd corelib
    
    # Compile the project
    mvn clean compile
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top