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

uber-go / zap / 1642 / 1
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: license
DEFAULT BRANCH: master
Ran 14 Mar 2017 10:32PM UTC
Files 36
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

14 Mar 2017 10:24PM UTC coverage: 97.004%. First build
1642.1

push

travis-ci

akshayjshah
Expose Buffer pools to third-party encoders

Zap currently uses an internal package to house its buffer pool, and it returns
all buffers to that pool. This is problematic for two reasons:

1. First, third-party encoders can easily corrupt the pool by keeping a
   reference to a buffer.
2. Second, third-party encoders can't pool their buffers, since zap needs to
   know how to return them to their pools.

This PR introduces a `buffer.Pool` type to solve this problem. Individual
buffers can only be created via a pool, and each buffer keeps a reference to its
pool of origin. This allows zap to continue using a single internal pool, but it
allows third-party encoders to safely pool their buffers too.

2234 of 2303 relevant lines covered (97.0%)

69450.19 hits per line

Source Files on job 1642.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1642
  • Travis Job 1642.1
  • b6a17d4a on github
  • Next Job for on ajs-buf (#1644.1)
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