Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Hi guys,
- I'm trying to improve performance of the first time a report is generated by caching the cshtml (the template) we use to generate the report. However, the execution time of Run is almost the same of RunCompile (what I mean is that adding the template and calling the compile ahead of time is making almost no difference).
- What should I check next?
- Thank you so much
- */
- Service.AddTemplate(key, template);
- Service.Compile(key, modelType);
- Service.Run(key, modelType, model);
- //--------------------------------------------------------
- Service.RunCompile(cshtml, key, model.GetType(), model);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement