Skip to content

Avoid unnecessary allocations of channels - #36

Merged
azazeal merged 1 commit into
masterfrom
less-channels
Sep 4, 2026
Merged

Avoid unnecessary allocations of channels#36
azazeal merged 1 commit into
masterfrom
less-channels

Conversation

@azazeal

@azazeal azazeal commented Sep 4, 2026

Copy link
Copy Markdown
Owner

This PR refactors Caller.Call so that the wait channel is allocated by the first reader rather than the writer, and not at all when the call isn't shared.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 33875101748

Coverage increased (+0.1%) to 98.462%

Details

  • Coverage increased (+0.1%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (12 of 13 lines covered, 92.31%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
singleflight.go 13 12 92.31%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 65
Covered Lines: 64
Line Coverage: 98.46%
Coverage Strength: 14.17 hits per line

💛 - Coveralls

@azazeal
azazeal marked this pull request as ready for review September 4, 2026 13:07
@azazeal
azazeal enabled auto-merge September 4, 2026 13:07
@azazeal
azazeal disabled auto-merge September 4, 2026 13:08
@azazeal
azazeal merged commit 0d3ccbf into master Sep 4, 2026
13 checks passed
@azazeal
azazeal deleted the less-channels branch September 4, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants