Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 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/type.go

    // sizes of types. Callers should pass nil for typedefs; this is used
    // for internal recursion.
    func (d *Data) readType(name string, r typeReader, off Offset, typeCache map[Offset]Type, fixups *typeFixer) (Type, error) {
    	if t, ok := typeCache[off]; ok {
    		return t, nil
    	}
    	r.Seek(off)
    	e, err := r.Next()
    	if err != nil {
    		return nil, err
    	}
    	addressSize := r.AddressSize()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  3. 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)
  4. src/runtime/heapdump.go

    	// make sure we're done sweeping
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			s.ensureSwept()
    		}
    	}
    	memclrNoHeapPointers(unsafe.Pointer(&typecache), unsafe.Sizeof(typecache))
    	dwrite(unsafe.Pointer(&dumphdr[0]), uintptr(len(dumphdr)))
    	dumpparams()
    	dumpitabs()
    	dumpobjs()
    	dumpgs()
    	dumpms()
    	dumproots()
    	dumpmemstats(m)
    	dumpmemprof()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. 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)
  6. src/go/internal/gcimporter/iimport.go

    		},
    	}
    	defer p.fake.setLines() // set lines for files in fset
    
    	for i, pt := range predeclared {
    		p.typCache[uint64(i)] = pt
    	}
    	// Special handling for "any", whose representation may be changed by the
    	// gotypesalias GODEBUG variable.
    	p.typCache[uint64(len(predeclared))] = types.Universe.Lookup("any").Type()
    
    	pkgList := make([]*types.Package, r.uint64())
    	for i := range pkgList {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. tensorflow/cc/saved_model/fingerprinting_utils.cc

              switch (key.type_case()) {
                case ::tensorflow::proto_splitter::FieldIndex::MapKey::TypeCase::kS:
                  if (chunked_key.has_s() && chunked_key.s() == key.s()) {
                    matches += 1;
                  }
                  break;
                case ::tensorflow::proto_splitter::FieldIndex::MapKey::TypeCase::
                    kBoolean:
                  if (chunked_key.has_boolean() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/vendor/golang.org/x/mod/sumdb/client.go

    	verifiers  note.Verifiers // accepted verifiers (just one, but Verifiers for note.Open)
    	tileReader tileReader
    	tileHeight int
    	nosumdb    string
    
    	record    parCache // cache of record lookup, keyed by path@vers
    	tileCache parCache // cache of c.readTile, keyed by tile
    
    	latestMu  sync.Mutex
    	latest    tlog.Tree // latest known tree head
    	latestMsg []byte    // encoded signed note for latest
    
    	tileSavedMu sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 17:50:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  10. pkg/ledger/smt.go

    	}
    	s := &smt{
    		hash:              hash,
    		trieHeight:        len(hash([]byte("height"))) * 8, // hash any string to get output length
    		retentionDuration: retentionDuration,
    	}
    	s.db = &cacheDB{
    		updatedNodes: byteCache{cache: updateCache},
    	}
    	s.loadDefaultHashes()
    	return s
    }
    
    func (s *smt) Root() []byte {
    	s.rootMu.RLock()
    	defer s.rootMu.RUnlock()
    	return s.root
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 16:43:05 UTC 2023
    - 14K bytes
    - Viewed (0)
Back to top