When we do code generation, also generate a handler/endpoint loader type that can be used to speed up cold starts by eliminating any reflection at bootstrapping. Mostly worried about making Wolverine better for serverless scenarios, but this might get us a bit closer to AOT compliance too
Longer term thing. Might pair this w/ Lamar improvements as well.
This could potentially:
- Turn off assembly scanning to find handlers and/or HTTP endpoints
- Assembly scanning for Fluent Validation validators
- Maybe generates an executor finder that eliminates the usage of Reflection at runtime (just where Wolverine does a GetType(), then looks up in an ImHashMap).
- Eliminates having to scan an assembly to find pre-built types
- Maybe eliminates all assembly scanning for IoC registrations, but only for Lamar most likely
When we do code generation, also generate a handler/endpoint loader type that can be used to speed up cold starts by eliminating any reflection at bootstrapping. Mostly worried about making Wolverine better for serverless scenarios, but this might get us a bit closer to AOT compliance too
Longer term thing. Might pair this w/ Lamar improvements as well.
This could potentially: