Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 419 for reusing (0.06 seconds)

  1. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

          long lastEntry = entries[srcIndex];
          entries[dstIndex] = lastEntry;
          entries[srcIndex] = UNSET;
    
          // also need to update whoever's "next" pointer was pointing to the last entry place
          // reusing "tableIndex" and "next"; these variables were no longer needed
          int tableIndex = getHash(lastEntry) & hashTableMask();
          int lastNext = table[tableIndex];
          if (lastNext == srcIndex) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/crypto/CachedCipher.java

    import org.codelibs.core.misc.Base64Util;
    
    /**
     * A high-performance utility class for encrypting and decrypting data using cached {@link Cipher} instances.
     * <p>
     * This class provides efficient encryption/decryption by pooling and reusing cipher instances,
     * reducing the overhead of repeated cipher initialization. It supports both string-based keys
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  3. guava/src/com/google/common/util/concurrent/Striped.java

       *     {@link #get(Object)}; may contain duplicates), in an increasing index order.
       */
      public Iterable<L> bulkGet(Iterable<? extends Object> keys) {
        // Initially using the list to store the keys, then reusing it to store the respective L's
        List<Object> result = newArrayList(keys);
        if (result.isEmpty()) {
          return ImmutableList.of();
        }
        int[] stripes = new int[result.size()];
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 22:01:32 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                    LeaseEntry entry = leases.get(existingKey);
                    if (entry != null && !entry.breaking) {
                        entry.lastAccessTime = System.currentTimeMillis();
                        log.debug("Reusing existing lease for path: {}", path);
                        return existingKey;
                    }
                }
    
                // Check if we've reached max leases
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                        log.debug("Error while checking for reuse", e);
                        continue;
                    }
    
                    if (log.isTraceEnabled()) {
                        log.trace("Reusing transport connection " + conn);
                    }
                    return conn.acquire();
                }
            }
    
            return null;
        }
    
        @Override
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpClient.java

     * group, and symbolic links.
     *
     * <p>
     * The class uses Apache Commons Net library for FTP communication. It maintains a queue of FTPClient
     * instances to improve performance by reusing connections.
     * </p>
     *
     * <p>
     * The client can be configured with FTP-specific settings via init parameters, such as:
     * </p>
     * <ul>
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Mon Nov 24 03:59:47 GMT 2025
    - 40K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/SmbTransportImpl.java

            while (iter.hasNext()) {
                final SmbSessionImpl ssn = iter.next();
                if (ssn.matches(tf, targetHost, targetDomain)) {
                    if (log.isTraceEnabled()) {
                        log.trace("Reusing existing session " + ssn);
                    }
                    return ssn.acquire();
                }
                if (log.isTraceEnabled()) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

     *
     * OkHttp performs best when you create a single `OkHttpClient` instance and reuse it for all of
     * your HTTP calls. This is because each client holds its own connection pool and thread pools.
     * Reusing connections and threads reduces latency and saves memory. Conversely, creating a client
     * for each request wastes resources on idle pools.
     *
     * Use `new OkHttpClient()` to create a shared instance with the default settings:
     *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  9. src/bytes/bytes.go

    	// is too large we are basically just thrashing the CPU D-cache.
    	// So if the result length is larger than an empirically-found
    	// limit (8KB), we stop growing the source string once the limit
    	// is reached and keep reusing the same source string - that
    	// should therefore be always resident in the L1 cache - until we
    	// have completed the construction of the result.
    	// This yields significant speedups (up to +100%) in cases where
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  10. internal/grid/connection.go

    				dst = make([]byte, 0, hdr.Length+hdr.Length>>3)
    			}
    			if !hdr.Fin {
    				hdr.Length = -1
    			}
    			return readAllInto(dst[:0], &wsReader, hdr.Length)
    		}
    	}
    
    	// Keep reusing the same buffer.
    	var msg []byte
    	for atomic.LoadUint32((*uint32)(&c.state)) == StateConnected {
    		if cap(msg) > readBufferSize*4 {
    			// Don't keep too much memory around.
    			msg = nil
    		}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 46.9K bytes
    - Click Count (0)
Back to Top