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

ben-manes / caffeine / 1999
100%

Build:
DEFAULT BRANCH: master
Ran 02 Apr 2017 03:28AM UTC
Jobs 1
Files 67
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
1999

push

travis-ci

ben-manes
Prototype of hierarchical timer wheel

A timer wheel allows timers to be added, removed, or fired in amortized
O(1) time. Instead of using a O(lg n) priority queue, timers are
assigned to a bucket by hashing. Each wheel represents a resolution,
e.g. seconds / minutes / hours, and structured into a hierarchy. As the
wheels rotate, events cascade from a higher level to the lower. When a
bucket then all of its timers are evaluated, either cascaded or fired.
This amortizes the cost as cascading is done in small batches.

This serves as the foundation for variable expiration, where some
entries are short lived and others long lived. The custom policy is
defined by the user and the timer wheel is operated on during the
cache maintenance cycles.

This is work in progress. But shows the general idea of where we are
going.

5445 of 5815 relevant lines covered (93.64%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1999.1 (TERM=dumb) 02 Apr 2017 03:28AM UTC 0
93.64
Travis Job 1999.1
Source Files on build 1999
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1999
  • ca608752 on github
  • Prev Build on master (#1992)
  • Next Build on master (#2000)
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