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

ben-manes / caffeine / 1536
100%

Build:
DEFAULT BRANCH: master
Ran 26 Dec 2015 05:10AM UTC
Jobs 1
Files 63
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
1536

push

travis-ci

ben-manes
Avoid unnecessary lambda allocation on insert

If a new entry is being inserted into a cache and a writer isn't used,
then a `computeIfAbsent` can instead be replaced with a `putIfAbsent`.
This avoids an unnecessary allocation, which adds GC pressure.

This is in response to CASSANDRA-10855 perf run which was dominated by
insertions with a cache miss due to the uniform distribution. This is
at least a little optimization, though there's not much we can do for
that scenario.

4293 of 4592 relevant lines covered (93.49%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1536.1 (TERM=dumb) 26 Dec 2015 05:10AM UTC 0
93.49
Travis Job 1536.1
Source Files on build 1536
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1536
  • 8e5ad889 on github
  • Prev Build on master (#1535)
  • Next Build on master (#1538)
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