The GitHub Actions job "Scalafmt" 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:
bce5b4a3e1a4fd534eaa5f807120f6059448c0a8 / 虎鸣 <[email protected]>
refactor: JIT/GC optimizations on unary hot path

Motivation:
Review identified redundant method calls, dead code branches, and
a missing safety check in the strict deserialization path.

Modification:
- GrpcProtocolNative: inline compressed-bit check and use ByteString.drop
  instead of Identity.uncompress + slice, eliminating a method call and
  redundant bounds checking on the identity decode hot path
- GrpcMarshalling (scaladsl): merge duplicate catch branches
  (MissingParameterException is already matched by NonFatal), reducing
  bytecode branch count for cleaner JIT compilation
- GrpcMarshalling (javadsl): add frame header length check before
  offset-aware deserialization in strict path, matching scaladsl behavior
- Handler template: remove dead if(powerApis) conditional inside
  @if(!powerApis) block in pre-created lambda definitions

Result:
Fewer allocations and method calls on the hot path, cleaner bytecode
for JIT, and consistent error handling between Java and Scala DSLs.

Report URL: https://github.com/apache/pekko-grpc/actions/runs/28043787086

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to