- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 592 for pool (0.02 seconds)
-
cmd/erasure-server-pool-decom_test.go
for i, pool := range nmeta2.Pools { if i == 0 { nmeta2.Pools[i] = PoolStatus{ CmdLine: pool.CmdLine, ID: i, LastUpdate: UTCNow(), Decommission: &PoolDecommissionInfo{ Complete: false, }, } } } testCases := []struct { meta poolMeta pools []*erasureSets expectedUpdate bool expectedErr boolCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 4.8K bytes - Click Count (0) -
internal/bpool/pool.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package bpool import "sync" // Pool is a single type sync.Pool with a few extra properties: // If New is not set Get may return the zero value of T. type Pool[T any] struct { New func() T p sync.Pool } // Get will retuen a new T func (p *Pool[T]) Get() T { v, ok := p.p.Get().(T) if ok { return v } if p.New == nil {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 1.2K bytes - Click Count (0) -
schema/pool.go
package schema import ( "reflect" "sync" ) // sync pools var ( normalPool sync.Map poolInitializer = func(reflectType reflect.Type) FieldNewValuePool { v, _ := normalPool.LoadOrStore(reflectType, &sync.Pool{ New: func() interface{} { return reflect.New(reflectType).Interface() }, }) return v.(FieldNewValuePool) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Apr 11 13:37:44 GMT 2022 - 345 bytes - Click Count (0) -
internal/bpool/bpool.go
// someone tried to put back buffer which is not part of this buffer pool // we simply don't put this back into pool, a modified buffer provided // by this package is no more usable, callers make sure to not modify // the capacity of the buffer. return } select { case bp.c <- b[:bp.w]: // buffer went back into pool default: // buffer didn't go back into pool, just discard } }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt
// Running at time 75, the pool returns that nothing can be evicted until time 150. assertThat(pool.closeConnections(75L)).isEqualTo(75L) assertThat(pool.connectionCount()).isEqualTo(2) // Running at time 149, the pool returns that nothing can be evicted until time 150. assertThat(pool.closeConnections(149L)).isEqualTo(1L) assertThat(pool.connectionCount()).isEqualTo(2)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:55:03 GMT 2025 - 8.2K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/RdmaBufferManager.java
this.totalAllocated = new AtomicLong(); this.totalReleased = new AtomicLong(); // Pre-allocate buffer pool initializeBufferPool(); } /** * Initialize the buffer pool with pre-allocated regions */ private void initializeBufferPool() { // Allocate send buffers for (int i = 0; i < initialSendBuffers; i++) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 8.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/InternersTest.java
String not = new String("a"); Interner<String> pool = Interners.newStrongInterner(); assertThat(pool.intern(canonical)).isSameInstanceAs(canonical); assertThat(pool.intern(not)).isSameInstanceAs(canonical); } public void testStrong_null() { Interner<String> pool = Interners.newStrongInterner(); assertThrows(NullPointerException.class, () -> pool.intern(null)); } public void testStrong_builder() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.5K bytes - Click Count (0) -
docs/contribute/concurrency.md
## Connection Pool A primary responsibility for any HTTP client is to efficiently manage network connections. Creating and establishing new connections require a fair amount of overhead and added latency. OkHttp will make every effort to reuse existing connections to avoid this overhead and added latency.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0) -
cmd/metrics-v3-cluster-erasure-set.go
erasureSetOnlineDrivesCountMD = NewGaugeMD(erasureSetOnlineDrivesCount, "Count of online drives in the erasure set in a pool", poolIDL, setIDL) erasureSetHealingDrivesCountMD = NewGaugeMD(erasureSetHealingDrivesCount, "Count of healing drives in the erasure set in a pool", poolIDL, setIDL) erasureSetHealthMD = NewGaugeMD(erasureSetHealth, "Health of the erasure set in a pool (1=healthy, 0=unhealthy)", poolIDL, setIDL)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue May 14 07:25:56 GMT 2024 - 4.4K bytes - Click Count (0) -
cmd/fmt-gen.go
if err != nil { log.Fatalln(err) } zipFile, err := os.Create("format.json.zip") if err != nil { log.Fatalf("failed to create format.json.zip: %v", err) } defer zipFile.Close() fmtZipW := zip.NewWriter(zipFile) defer fmtZipW.Close() for _, pool := range pools { // for each pool setCount, setDriveCount := pool.SetCount, pool.DrivesPerSetCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 3.7K bytes - Click Count (0)