title: MVC find or render view performance issue
body: <p>I have a "big" (500ms per request first time only) performance issue on finding or on rendering a view.
  After many searches over internet, i found how to avoid the performance issue on finding the view but the problem postponed to the render part...
  In the end, i still have a gap of 500ms to render a simple view.</p>
  
  <p>I didn't find if my controller's size can be a problem (15k code lines) or if it's exclusively linked to my view (there is server code inside, not a lot but can it be significant?)</p>
  
  <p>Thanks for your help! </p>
  
  <p>EDIT: Routing configuration</p>
  
  <pre><code>protected void Application_Start()
      {
          ViewEngines.Engines.Clear();
          CustomRazorViewEngine engine = new CustomRazorViewEngine() {
              AreaViewLocationFormats = new[] { "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml" },
              AreaMasterLocationFormats = new[] { "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml" },
              AreaPartialViewLocationFormats = new[] { "~/Areas/{2}/Views/{1}/{0}.cshtml", "~/Areas/{2}/Views/Shared/{0}.cshtml" },
              ViewLocationFormats = new[] { "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml" },
              MasterLocationFormats = new[] { "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml" },
              PartialViewLocationFormats = new[] { "~/Views/{1}/{0}.cshtml", "~/Views/Shared/{0}.cshtml" },
              FileExtensions = new[] { "cshtml" }
          };  
          engine.ViewLocationCache = new DefaultViewLocationCache(TimeSpan.FromHours(24));
          ViewEngines.Engines.Add(new ProfilingViewEngine(engine));
          AreaRegistration.RegisterAllAreas();
          RegisterGlobalFilters(GlobalFilters.Filters);
          RegisterRoutes(RouteTable.Routes);
  
          ModelBinders.Binders.Add(typeof(double?), new DoubleModelBinder());
          ModelBinders.Binders.Add(typeof(double), new DoubleModelBinder());
  
      }
  </code></pre>