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

lemire / JavaFastPFOR / 201 / 2
66%
master: 66%

Build:
DEFAULT BRANCH: master
Ran 03 Apr 2017 12:09AM UTC
Files 37
Run time 1s
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

03 Apr 2017 12:07AM UTC coverage: 65.77% (+0.7%) from 65.07%
201.2

Pull #39

travis-ci

web-flow
Make direct buffer allocation optional

This is a minor refactoring of all codecs that directly allocate Java `ByteBuffers`: instead of making a direct call to `ByteBuffer#allocate()`, the codec invokes a protected method `makeBuffer(size)`. This allows a user to subclass the codec and override the method to customize the buffer allocation.

In particular, this enables users to use heap-buffers and/or buffer pooling. The latter is essential for reducing memory churn.

In a JVM benchmark (not included) on some real-world data, this refactoring did not decrease performance. (Notice that dropping `final` from some classes does not stop the JVM from inlining, such as in [monomorphic callsites](https://shipilev.net/blog/2015/black-magic-method-dispatch/).)
Pull Request #39: Make direct buffer allocation optional

5893 of 8960 relevant lines covered (65.77%)

0.66 hits per line

Source Files on job 201.2
  • Tree
  • List 0
  • Changed 6
  • Source Changed 5
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 201
  • Travis Job 201.2
  • 6f201ecc on github
  • Prev Job for on master (#200.2)
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