Open TheCutter opened 11 years ago
Is there a reason why Compile & Run is used on every request!? If you change the implementation to use Parse its much faster!
private string GetParsedView(IView view, string viewTemplate) { if (view.ModelType == null) { return _templateService.Parse(viewTemplate, view.ViewName); } return _templateService.Parse(viewTemplate, view.Model, view.ViewName); }
Is there a reason why Compile & Run is used on every request!? If you change the implementation to use Parse its much faster!