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

iconara / ione
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: v1.2.4
DEFAULT BRANCH: master
Repo Added 02 Mar 2014 06:43PM UTC
Files 12
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

LAST BUILD ON BRANCH improve-base-connection-locks
branch: improve-base-connection-locks
CHANGE BRANCH
x
Reset
  • improve-base-connection-locks
  • 1.2.0.pre4
  • acceptor-host-and-port
  • after-factory
  • byte-buffer-getbyte
  • byte-buffer-index
  • deprecate-future-value
  • destructive-future-combinators
  • fix-jruby-test-issues
  • fix-warnings
  • future_improvements
  • handle_badf_in_select
  • http_server
  • io-reactor-drain
  • master
  • optimize-resolved-combine
  • optimize_future_combinators
  • optimized_scheduler
  • restartable_reactor
  • running-while-stopping
  • ssl_support
  • ssl_support_on_1.2
  • stack-safe-after
  • stack-safe-reduce
  • streams
  • synchronized_close
  • thread-pooling
  • travis-test
  • travis_debug
  • try-complete-promise
  • unblock-once
  • uncaught-error-handler
  • v1.0.0
  • v1.1.0
  • v1.1.0.pre0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.1.5
  • v1.1.x
  • v1.2.0.pre0
  • v1.2.0.pre1
  • v1.2.0.pre2
  • v1.2.0.pre3
  • v1.2.0.pre4
  • v1.2.0.pre6
  • v1.2.0.pre7
  • v1.2.0.pre8
  • v1.2.1
  • v1.2.2
  • v1.2.3
  • v1.2.4
  • v1.2.x
  • v1.3.0.pre0
  • v1.3.0.pre1
  • v1.3.0.pre2

pending completion
303

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.

2812 of 2816 relevant lines covered (99.86%)

19994.09 hits per line

Relevant lines Covered
Build:
Build:
2816 RELEVANT LINES 2812 COVERED LINES
19994.09 HITS PER LINE
Source Files on improve-base-connection-locks
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
303 improve-base-connection-locks 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 profi... push 17 May 2016 08:34AM UTC iconara travis-ci pending completion  
301 improve-base-connection-locks 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 profi... push 10 May 2016 07:25AM UTC grddev travis-ci pending completion  
299 improve-base-connection-locks Reduce lock duration for BaseConnection#write This lifts the conditionals outside the lock. The yielding case reverts to using mutex synchronize, as the yield is bound to be slow anyhow. push 09 May 2016 10:29PM UTC Gustav Munkby travis-ci pending completion  
See All Builds (272)
  • Repo on GitHub
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