Chris van de Steeg recently detailed and implemented a means to precompile your Razor views into a separate DLL: Embedding precompiled razor views in your dll. Has anyone made use o开发者_StackOverflowf this technique in a production environment and if so are your experiences positive?
I haven't, but another approach worth looking into is one by David Ebbo, an architect on the ASP.NET team: http://blog.davidebbo.com/2011/06/precompile-your-mvc-views-using.html
精彩评论