Skip to content

tranport: Reduce heap allocs by setting BufferSlice capacity - #8797

Merged
arjan-bal merged 3 commits into
grpc:masterfrom
arjan-bal:transport-heap-allocs
Jan 7, 2026
Merged

tranport: Reduce heap allocs by setting BufferSlice capacity#8797
arjan-bal merged 3 commits into
grpc:masterfrom
arjan-bal:transport-heap-allocs

avoid early return, specify capacitly limit directly

b01f07f
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 6, 2026 in 0s

83.36% (+0.06%) compared to 88ac703

View this Pull Request on Codecov

83.36% (+0.06%) compared to 88ac703

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.36%. Comparing base (88ac703) to head (b01f07f).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8797      +/-   ##
==========================================
+ Coverage   83.30%   83.36%   +0.06%     
==========================================
  Files         418      418              
  Lines       32897    33010     +113     
==========================================
+ Hits        27404    27520     +116     
+ Misses       4093     4088       -5     
- Partials     1400     1402       +2     
Files with missing lines Coverage Δ
internal/transport/transport.go 89.06% <100.00%> (+0.35%) ⬆️

... and 38 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.