Home | History | Annotate | Download | only in fst

Lines Matching refs:cache_size_

120         cache_gc_(FLAGS_fst_default_cache_gc),  cache_size_(0),
130 cache_first_state_(0), cache_gc_(opts.gc), cache_size_(0),
140 cache_first_state_(0), cache_gc_(impl.cache_gc_), cache_size_(0),
202 cache_size_ += sizeof(S) +
211 cache_size_ += sizeof(S);
212 if (cache_size_ > cache_limit_)
250 cache_size_ += sizeof(Arc);
251 if (cache_size_ > cache_limit_)
282 cache_size_ += arcs.capacity() * sizeof(Arc);
283 if (cache_size_ > cache_limit_)
403 << ", cache size = " << cache_size_
411 if (cache_size_ > cache_target && state->ref_count == 0 &&
413 cache_size_ -= sizeof(S) + state->arcs.capacity() * sizeof(Arc);
422 if (!free_recent && cache_size_ > cache_target) {
425 while (cache_size_ > cache_target) {
432 << ", cache size = " << cache_size_
447 size_t GetCacheSize() const { return cache_size_; }
472 size_t cache_size_; // # of bytes cached