Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for efficiently (0.58 sec)

  1. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                }
            }
        }
    
        @Nested
        @DisplayName("Performance Tests")
        class PerformanceTests {
    
            @Test
            @DisplayName("Should handle repeated encoding efficiently")
            void testRepeatedEncoding() {
                TestCreateContextRequest request = new TestCreateContextRequest("PERFORMANCE".getBytes(StandardCharsets.UTF_8));
                byte[] buffer = new byte[256];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/HexdumpTest.java

            };
    
            String result = Hexdump.toHexString(data);
            assertEquals("00FF7F80", result);
        }
    
        @Test
        @DisplayName("Should handle large byte arrays efficiently")
        void testLargeByteArray() {
            // Create a larger test array
            byte[] data = createTestData(1024);
    
            // Test full array conversion
            String result = Hexdump.toHexString(data);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/MimeMapTest.java

            }
        }
    
        @Nested
        @DisplayName("Performance and concurrency")
        class PerformanceTests {
    
            @Test
            @DisplayName("Should handle multiple lookups efficiently")
            void testMultipleLookups() throws IOException {
                // Test that multiple lookups work correctly
                for (int i = 0; i < 100; i++) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/audit/SecurityAuditLogger.java

                entry.context = getContextMap();
                if (context != null) {
                    entry.context.putAll(maskContext(context));
                }
    
                // Add MDC context efficiently
                addMdcContext(entry.context);
    
                // Process asynchronously or synchronously based on configuration
                if (asyncLogging && !shutdown) {
                    if (!logQueue.offer(entry)) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                });
    
                // Capacity should not be negative (overflow check)
                assertTrue(info.getCapacity() != 0);
            }
    
            @Test
            @DisplayName("Should decode efficiently for large buffers")
            void testLargeBufferDecoding() throws SMBProtocolDecodingException {
                byte[] largeBuffer = new byte[10000];
                FileFsSizeInformation info = new FileFsSizeInformation();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                int result = response.writeBytesWireFormat(dst, 0);
    
                // Then
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should handle large arrays efficiently")
            void testWriteBytesWireFormatWithLargeArray() {
                // Given
                byte[] dst = new byte[65536]; // 64KB array
    
                // When
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

        /**
         * Exports all crawling information parameters to CSV format.
         * The CSV output includes: SessionId, SessionCreatedTime, Key, Value, CreatedTime.
         * Uses cursor-based selection to handle large datasets efficiently.
         *
         * @param writer the Writer to output CSV data to
         */
        public void exportCsv(final Writer writer) {
            final CsvConfig cfg = new CsvConfig(',', '"', '"');
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/SearchHelper.java

                    }).orElse(queryResponseList);
                }
            }
            return documentItems;
        }
    
        /**
         * Performs a scroll search for processing large result sets efficiently.
         *
         * This method uses OpenSearch scroll API to iterate through large numbers of
         * documents without loading them all into memory at once.
         *
         * @param params The search request parameters
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Dec 20 05:56:45 UTC 2025
    - 36.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                    assertEquals(firstResult, result, "All thread results should be consistent");
                }
            }
    
            @Test
            @DisplayName("Should handle concurrent verify operations efficiently")
            void testConcurrentVerifyPerformance() throws InterruptedException {
                int threadCount = 50;
                int operationsPerThread = 100;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFile.java

         * @throws CIFSException if connection fails
         *
         */
        synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
            // Optimization: Check connection validity more efficiently
            if (this.treeHandle != null && this.treeHandle.isConnected()) {
                // Connection is still valid - reuse it
                return this.treeHandle.acquire();
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top