He-Pin opened a new pull request, #1132:
URL: https://github.com/apache/pekko-http/pull/1132

   ### Motivation
   `java.lang.reflect` `Method.invoke` and `Constructor.newInstance` bypass JIT 
inlining, adding overhead to build-time aggregation calls and test code.
   
   ### Modification
   - **SbtInternalAccess**: Replace `Method.invoke` with `MethodHandle.invoke` 
via `unreflect` for `Aggregation.showRun` calls
   - **Http2ServerSpec**: Replace `Field.get` with `VarHandle.get` via 
`unreflectVarHandle` for `ManualProbe.probe` field access
   - **TurkishISpec**: Replace `Constructor.newInstance` with 
`MethodHandle.invoke` via `unreflectConstructor` for `HttpCharsets$` 
instantiation
   
   ### Result
   `MethodHandle` and `VarHandle` enable JIT inlining, eliminating reflection 
overhead in both build-time and test code paths.
   
   ### Tests
   - `sbt "http2-tests / Test / compile"` - success
   - `sbt "http-core / Test / compile"` - success
   
   ### References
   None - internal refactoring


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to