Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for typecache (0.19 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/cache/ModelSchemaCache.java

            Map<ModelType<?>, ModelSchema<?>> typeCache = cache.get(cacheKey);
            if (typeCache == null) {
                typeCache = new HashMap<>();
                cache.put(cacheKey, typeCache);
            }
            typeCache.put(type, schema);
        }
    
        public long size() {
            cleanUp();
            long size = 0;
            for (Map<ModelType<?>, ModelSchema<?>> values : cache.values()) {
                size += values.size();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/debug/dwarf/open.go

    	addr       []byte
    	lineStr    []byte
    	strOffsets []byte
    	rngLists   []byte
    
    	// parsed data
    	abbrevCache map[uint64]abbrevTable
    	bigEndian   bool
    	order       binary.ByteOrder
    	typeCache   map[Offset]Type
    	typeSigs    map[uint64]*typeUnit
    	unit        []unit
    }
    
    var errSegmentSelector = errors.New("non-zero segment_selector size not supported")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. pkg/ledger/trie_cache.go

    )
    
    type cacheDB struct {
    	// updatedNodes that have will be flushed to disk
    	updatedNodes byteCache
    	// updatedMux is a lock for updatedNodes
    	updatedMux sync.RWMutex
    }
    
    // byteCache implements a modified ExpiringCache interface, returning byte arrays
    // for ease of integration with smt calls.
    type byteCache struct {
    	cache cache.ExpiringCache
    }
    
    // Set inserts an entry in the cache. This will replace any entry with
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. pkg/ledger/smt_test.go

    	smt := newSMT(hasher, nil, time.Minute)
    	// Add data to empty trie
    	keys := getFreshData(10)
    	values := getFreshData(10)
    	_, err := smt.Update(keys, values)
    	assert.NoError(t, err)
    	smt.db.updatedNodes = byteCache{cache: cache.NewTTL(forever, time.Minute)}
    	smt.loadDefaultHashes()
    
    	// Check errors are raised is a keys is not in cache nor db
    	for _, key := range keys {
    		_, err := smt.Get(key)
    		assert.Error(t, err)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 7.9K bytes
    - Viewed (0)
Back to top