You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2026/06/21 15:52:01 UTC
[GH] (pekko-grpc/optimize/fast-negotiation-uri-match): Workflow run "Validate and test" failed!
The GitHub Actions job "Validate and test" on pekko-grpc.git/optimize/fast-negotiation-uri-match has failed.
Run started by GitHub user He-Pin (triggered by He-Pin).
Head commit for run:
df09e3261d40c06a977ec4991731a5466b439d12 / 虎鸣 <he...@alibaba-inc.com>
Eliminate Option.map lambda allocation in negotiated method
Motivation:
The negotiated method used Option.map with a pattern-matching lambda,
which allocates a new Function1 object on every request. This appeared
as GrpcMarshalling$$$Lambda (48 CPU samples) in async-profiler.
Modification:
Replace Option.map with direct pattern matching on the negotiate
result. The match on Some/Failure/Success is allocation-free (only
type checks and field accesses via destructuring).
Result:
Eliminates one lambda allocation per gRPC request in the negotiated
method hot path.
Tests:
sbt runtime / Test / testOnly GrpcMarshallingSpec
All 7 tests passed.
References: None - performance optimization from flamegraph analysis
Report URL: https://github.com/apache/pekko-grpc/actions/runs/27909358231
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org