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

apache / bookkeeper / 435
72%

Build:
DEFAULT BRANCH: master
Ran 30 Apr 2019 03:05PM UTC
Jobs 1
Files 529
Run time 33s
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
435

push

jenkins

Sijie Guo
ISSUE #2067: reduce byte[] allocation in add entry

Descriptions of the changes in this PR:
This change removes a byte[] copy in DigestManager digest calculation
(computeDigestAndPackageForSending)
that puts crc header and payload in a continuous buffer. Instead,
it uses protobuf ByteString.concat to concatenate header and payload
without copy when building protobuf message.




### Motivation

In add entry code path, I see lots of byte[] allocated to do digest calculation.  It's possible to not allocate byte[]. 

### Changes

Don't allocate a ByteBuf to copy data. Keep header and data separate, but use ByteString.concat when construct protobuf message.

Master Issue: #2067 




Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #2068 from mtang01/add_entry_mem, closes #2067

26707 of 37546 relevant lines covered (71.13%)

0.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 435.1 30 Apr 2019 03:05PM UTC 0
71.13
Source Files on build 435
Detailed source file information is not available for this build.
  • Back to Repo
  • Jenkins Build #435
  • bd699e61 on github
  • Prev Build on master (#434)
  • Next Build on master (#436)
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

© 2025 Coveralls, Inc