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

grpc / grpc-java / #19961
89%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2025 02:04PM UTC
Jobs 1
Files 615
Run time 2min
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

26 Aug 2025 01:53PM UTC coverage: 88.554% (-0.001%) from 88.555%
#19961

push

github

ejona86
api: Reduce allocations of Attributes.Builder

Modifying existing Attributes was virtually guaranteed to allocate
within build(), just because `base` was not considered for the new map
size. Discard was also allocation-heavy because it often created a new
map. Using a regular copy-on-write approach is enough to avoid the
unnecessary allocations in both cases.

This was noticed in a profile that included xds's
AddressFilter.setPathFilter(), where Attributes.Builder.build()
allocated 6x the memory of Attributes.Builder.data().

b/435208946#comment41

34690 of 39174 relevant lines covered (88.55%)

0.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.55
-1.72% ../xds/src/main/java/io/grpc/xds/internal/security/certprovider/CertificateProvider.java
2
92.89
-0.28% ../okhttp/src/main/java/io/grpc/okhttp/OkHttpClientTransport.java
Jobs
ID Job ID Ran Files Coverage
1 #19961.1 26 Aug 2025 02:04PM UTC 615
88.55
Source Files on build #19961
  • Tree
  • List 615
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19961
  • 695014ad on github
  • Prev Build on master
  • Next Build on master
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