Home | History | Annotate | Download | only in fst

Lines Matching full:cache_limit_

124         cache_limit_(FLAGS_fst_default_cache_gc_limit > kMinCacheLimit ||
135 cache_limit_(opts.gc_limit > kMinCacheLimit || opts.gc_limit == 0 ?
147 cache_limit_(impl.cache_limit_),
243 if (cache_size_ > cache_limit_)
276 if (cache_size_ > cache_limit_)
443 // GC until at most cache_fraction * cache_limit_ bytes are cached.
446 // widens cache_limit_ to fulfill condition.
467 size_t GetCacheLimit() const { return cache_limit_; }
494 size_t cache_limit_; // # of bytes allowed before GC
506 } else if (cache_limit_ == 0 && cache_first_state_id_ == kNoStateId) {
537 cache_limit_ = kMinCacheLimit;
544 if (cache_size_ > cache_limit_)
554 // until at most cache_fraction * cache_limit_ bytes are cached. If
556 // as well. If still unable to free enough memory, then widens cache_limit_
567 << ", cache limit = " << cache_limit_ << "\n";
570 size_t cache_target = cache_fraction * cache_limit_;
589 cache_limit_ *= 2;
599 << ", cache limit = " << cache_limit_ << "\n";