Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Hi guys,
  3.  
  4. 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).
  5.  
  6. What should I check next?
  7.  
  8. Thank you so much
  9. */
  10.  
  11. Service.AddTemplate(key, template);
  12. Service.Compile(key, modelType);
  13.  
  14. Service.Run(key, modelType, model);
  15.  
  16. //--------------------------------------------------------
  17.  
  18. Service.RunCompile(cshtml, key, model.GetType(), model);
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement