Consider an optimization where we codegen a Func<Request,Response> delegate for each action. Much of the action is statically analyzable, including:
- the HttpParameterBindings. (ModelBinders, ValueProviders, Formatters)
- any attributes on the models, especially regarding validation
- all string manipulation for splatting to the action parameters.
This would allow us to generate optimal code for simple actions like this:
string Get(int id)
In theory, this coiudl be tested out with just a custom ActionInvoker.
Comments: This is an interesting idea but we have plenty of other higher priority items to address and this falls low on the list.
- the HttpParameterBindings. (ModelBinders, ValueProviders, Formatters)
- any attributes on the models, especially regarding validation
- all string manipulation for splatting to the action parameters.
This would allow us to generate optimal code for simple actions like this:
string Get(int id)
In theory, this coiudl be tested out with just a custom ActionInvoker.
Comments: This is an interesting idea but we have plenty of other higher priority items to address and this falls low on the list.