• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / 1760
100%

Build:
DEFAULT BRANCH: master
Ran 12 May 2016 08:14AM UTC
Jobs 1
Files 65
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1760

push

travis-ci

ben-manes
Adaptive refinements to reduce waste

The window captures recency, but that information quickly becomes
useless after a certain age. If the cache is small then it could play a
dominent role and the window needs to be a larger percentage. However it
never needs to be excessively large in total entry count.

256 appears to be the ideal cutoff. For a large cache we can avoid
wasting time and space by using a fixed size window. For a small cache
we can monitor to adapt based on the workload.

The resulting equation is very understandable for a large cache. If the
entry is being evicted from the window we know it has not been used
recently (256 recency distance). TinyLFU then decides whether to keep
the entry based on its frequency, which is now the best hint at reuse.
Most likely it will not and discarding the entry avoids cache
pollution.

A small cache is only slightly more complicated. We monitor a sample
of 1024 to detect mispredictions, using a bloom filter to retain
history. If detected we grow, else shrink, to the threshold limits.

5324 of 5636 relevant lines covered (94.46%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1760.1 (TERM=dumb) 12 May 2016 08:14AM UTC 0
94.46
Travis Job 1760.1
Source Files on build 1760
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1760
  • ef8c06a5 on github
  • Prev Build on master (#1759)
  • Next Build on master (#1761)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc