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

ben-manes / caffeine / 1411 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 14 Oct 2015 04:10PM UTC
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

14 Oct 2015 04:10PM UTC coverage: 94.707% (+0.4%) from 94.32%
TERM=dumb

push

travis-ci

ben-manes
Restore write performance

When rewriting the put() for correctness with zero weights, there were
major performance hits.

1. The loss of a fast-path to mimic a read when the update did not
require extra policy handling (e.g. replace with same weight). This
improved performance to 33% - 50% of the prior version.

2. The use of compute() to perform an mutation is slower than a get()
and requires creating a lambda (heap, not stack allocated). These two
reduce performance significantly, but cannot be worked around directly.
Instead they are only required for correctness of weights, which is not
the common case. The fix is then to use specialized put() methods
depending on if a custom weigher is used.

4151 of 4383 relevant lines covered (94.71%)

0.95 hits per line

Source Files on job 1411.1 (TERM=dumb)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1411
  • Travis Job 1411.1
  • 6fe1eb48 on github
  • Prev Job for TERM=dumb on master (#1408.1)
  • Next Job for TERM=dumb on master (#1412.1)
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