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

iconara / ione / 303 / 4
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.4
DEFAULT BRANCH: master
Ran 17 May 2016 08:34AM UTC
Files 13
Run time 0s
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

17 May 2016 08:27AM UTC coverage: 98.537% (-0.2%) from 98.783%
jruby

push

travis-ci

iconara
Reduce lock duration for BaseConnection#flush

This avoids performing the nonblocking write while holding the lock.
While it seems counter-intuitive, it seems this operation frequently
takes a lot of time. I don't know whether it is due to a profiling
artifact or not, but it shouldn't hurt in any case.

Since reads from the write buffer only happen from the single reactor
thread, we could actually perform (some) flushes without locking before
performing the non-blocking write. This uses a new byte-buffer accessor
that allows peeking at the contents of the byte buffer without taking
any lock.

2761 of 2802 relevant lines covered (98.54%)

85.84 hits per line

Source Files on job 303.4 (jruby)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 303
  • Travis Job 303.4
  • 0fc72e56 on github
  • Prev Job for jruby on improve-base-connection-locks (#301.4)
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