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

ben-manes / caffeine / 1405
100%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2015 04:46AM UTC
Jobs 1
Files 61
Run time 2s
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
1405

push

travis-ci

ben-manes
Add fast path read for hottest entries

An access that is recorded only for the maximum size policy can be
now be skipped if the entry is considered "hot". A hot entry resides
in the top region of the least-recently-used space of the MAIN queue.
This is sized at about 6.25% of the total entries.

The observation is that a cache typically obeys the power law, so the
hottest entries are requested the most frequently. When a hot entry's
status degrades there is a very high likelihood that it will be used
again before eviction, so it will regain its hot status. The impact in
the simulator showed roughly 0.05% change to the hit rate.

The distance count per entry is stored in the unused bits of the status
flag of whether the entry is in the EDEN or MAIN queue. The cost is
merely two entry integers on the cache.

This optimization is disabled if expireAfterAccess or reference caching
is used, as per-access recording is still needed.

Tests and benchmarks are the next step.

4104 of 4331 relevant lines covered (94.76%)

0.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1405.1 (TERM=dumb) 14 Oct 2015 04:46AM UTC 0
94.76
Travis Job 1405.1
Source Files on build 1405
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1405
  • be30125c on github
  • Prev Build on master (#1404)
  • Next Build on master (#1406)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc