Home
last modified time | relevance | path

Searched refs:cache_size_ (Results 1 – 2 of 2) sorted by relevance

/external/openfst/src/include/fst/
Dcache.h123 cache_gc_(FLAGS_fst_default_cache_gc), cache_size_(0), in cache_start_()
134 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0), in cache_start_()
146 cache_first_state_(0), cache_gc_(impl.cache_gc_), cache_size_(0),
161 cache_size_ = impl.cache_size_;
242 cache_size_ += sizeof(Arc); in AddArc()
243 if (cache_size_ > cache_limit_) in AddArc()
275 cache_size_ += arcs.capacity() * sizeof(Arc); in SetArcs()
276 if (cache_size_ > cache_limit_) in SetArcs()
302 cache_size_ -= n * sizeof(Arc); in DeleteArcs()
316 cache_size_ -= n * sizeof(Arc); in DeleteArcs()
[all …]
Daccumulator.h350 : cache_gc_(gc), cache_limit_(gc_limit), cache_size_(0) {} in CacheLogAccumulatorData()
372 if (cache_gc_ && cache_size_ >= cache_limit_) in AddWeights()
376 cache_size_ += weights->capacity() * sizeof(double); in AddWeights()
399 while (it != cache_.end() && cache_size_ > cache_target) { in GC()
402 cache_size_ -= cs.weights->capacity() * sizeof(double); in GC()
410 if (!free_recent && cache_size_ > cache_target) in GC()
417 size_t cache_size_; // # of bytes allowed before GC variable