Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 85 for loadstore (0.21 sec)

  1. mockwebserver/README.md

      // Responses are returned in the same order that they are enqueued.
      Chat chat = new Chat(baseUrl);
    
      chat.loadMore();
      assertEquals("hello, world!", chat.messages());
    
      chat.loadMore();
      chat.loadMore();
      assertEquals(""
          + "hello, world!\n"
          + "sup, bra?\n"
          + "yo dog", chat.messages());
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. 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)
    	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 11 13:37:44 UTC 2022
    - 345 bytes
    - Viewed (0)
  3. src/internal/concurrent/hashtriemap_bench_test.go

    	benchmarkHashTrieMapLoad(b, testDataLarge[:])
    }
    
    func benchmarkHashTrieMapLoad(b *testing.B, data []string) {
    	b.ReportAllocs()
    	m := NewHashTrieMap[string, int]()
    	for i := range data {
    		m.LoadOrStore(data[i], i)
    	}
    	b.ResetTimer()
    	b.RunParallel(func(pb *testing.PB) {
    		i := 0
    		for pb.Next() {
    			_, _ = m.Load(data[i])
    			i++
    			if i >= len(data) {
    				i = 0
    			}
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:20:09 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. pkg/controller/daemon/daemon_controller_test.go

    		addPods(manager.podStore, "node-0", simpleDaemonSetLabel, ds, 1)
    		addPods(manager.podStore, "node-1", simpleDaemonSetLabel, ds, 3)
    		addPods(manager.podStore, "node-1", simpleDaemonSetLabel2, ds, 2)
    		addPods(manager.podStore, "node-2", simpleDaemonSetLabel, ds, 4)
    		addPods(manager.podStore, "node-6", simpleDaemonSetLabel, ds, 13)
    		addPods(manager.podStore, "node-7", simpleDaemonSetLabel2, ds, 4)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  5. src/sync/map_reference_test.go

    )
    
    // This file contains reference map implementations for unit-tests.
    
    // mapInterface is the interface Map implements.
    type mapInterface interface {
    	Load(key any) (value any, ok bool)
    	Store(key, value any)
    	LoadOrStore(key, value any) (actual any, loaded bool)
    	LoadAndDelete(key any) (value any, loaded bool)
    	Delete(any)
    	Swap(key, value any) (previous any, loaded bool)
    	CompareAndSwap(key, old, new any) (swapped bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/archive/zip/register.go

    	if _, dup := decompressors.LoadOrStore(method, dcomp); dup {
    		panic("decompressor already registered")
    	}
    }
    
    // RegisterCompressor registers custom compressors for a specified method ID.
    // The common methods [Store] and [Deflate] are built in.
    func RegisterCompressor(method uint16, comp Compressor) {
    	if _, dup := compressors.LoadOrStore(method, comp); dup {
    		panic("compressor already registered")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    		(MOVDstore ptr (MOVDconst [0]) mem))
    (Zero [13] ptr mem) =>
    	(MOVDstore [5] ptr (MOVDconst [0])
    		(MOVDstore ptr (MOVDconst [0]) mem))
    (Zero [14] ptr mem) =>
    	(MOVDstore [6] ptr (MOVDconst [0])
    		(MOVDstore ptr (MOVDconst [0]) mem))
    (Zero [15] ptr mem) =>
    	(MOVDstore [7] ptr (MOVDconst [0])
    		(MOVDstore ptr (MOVDconst [0]) mem))
    (Zero [16] ptr mem) =>
    	(STP [0] ptr (MOVDconst [0]) (MOVDconst [0]) mem)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			podStore := cache.NewStore(cache.DeletionHandlingMetaNamespaceKeyFunc)
    			ns := "test"
    			addPods(podStore, ns, 1, 1, 0, tc.ipFamilies)
    			pods := podStore.List()
    			if len(pods) != 1 {
    				t.Fatalf("podStore size: expected: %d, got: %d", 1, len(pods))
    			}
    			pod := pods[0].(*v1.Pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

            def remoteStoreOp = operations.only(BuildCacheRemoteStoreBuildOperationType)
            def cacheKey = packOp.details.cacheKey
    
            remoteStoreOp.details.cacheKey == cacheKey
    
            if (localStore) {
                def localCacheArtifact = localCache.getCacheEntry(cacheKey.toString())
                assert packOp.result.archiveSize == localCacheArtifact.bytes.length
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. src/sync/map_test.go

    	"runtime"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"testing/quick"
    )
    
    type mapOp string
    
    const (
    	opLoad             = mapOp("Load")
    	opStore            = mapOp("Store")
    	opLoadOrStore      = mapOp("LoadOrStore")
    	opLoadAndDelete    = mapOp("LoadAndDelete")
    	opDelete           = mapOp("Delete")
    	opSwap             = mapOp("Swap")
    	opCompareAndSwap   = mapOp("CompareAndSwap")
    	opCompareAndDelete = mapOp("CompareAndDelete")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top