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

ben-manes / caffeine / #2538
100%

Build:
DEFAULT BRANCH: master
Ran 20 Dec 2020 12:01AM UTC
Jobs 1
Files 77
Run time 6s
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
#2538

push

other

ben-manes
Lazily initialize simulator policies

Previously the metadata for what characteristics a cache policy
supports was on an instance method. This required creating the policy
and then filtering out those that do not support the required features.
This is problematic because a policy's constructor perform allocations,
such as initializing arrays based on the maximum size. For large
weight-based runs, this could allocate very large objects that were
immediately thrown away because the policy is not compatible with the
configuration constraints.

All customizations for the metadata is now defined on an optional
@PolicySpec annotation. This is inspected and filtered against,
thereby avoiding the unnecessary creation.

This cut the execution time of a 1gb ObjectStore trace from 1.5m to 50s.

6229 of 6684 relevant lines covered (93.19%)

0.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #2538.1 20 Dec 2020 12:01AM UTC 0
93.19
Source Files on build #2538
Detailed source file information is not available for this build.
  • Back to Repo
  • f95228a5 on github
  • Prev Build on master
  • Next Build on master
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