There is a preview of this in ASP.NET MVC 6Nick Craver commented
The problem I see here is if you can change the factoryType, that type/provider can depend on...well, anything. For example at Stack Exchange we change the factory to do localization at view compile time, this wouldn't run the same locally so publishing remotely doesn't work.
While I agree it's a good feature in general (we spend WAY too much time compiling views currently, which needs other fixes), it may have to include instructions on when this optimization could be used.
407 votesNick Craver supported this idea ·Nick Craver commented
This is by far the slowest part of building the Stack Overflow/Stack Exchange sites. aspnet_compiler currently eats 2 minutes 6 seconds out of a 3 minute 30 second build process. We have 8-12 core build servers basically sitting idle while we wait for 60% of our build to crawl along, it's honestly painful to watch.
Please fix this, or allow us to do it. Currently we can't touch the parts of the engine related to batching or parallelization.