Replies: 1 comment
-
Hi, have a look at latest gitter conversation: https://gitter.im/RazorEngineCore/community?utm_source=badge&utm_medium=badge&utm_content=badge Can you reproduce this problem in console app? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a report containing 10-20 dynamic pdf pages which change very often.

Every time we call RazorEngine.Compile there are 25x*(10 or 20, number of pages)MB of memory which is not deallocated.
Are you aware of such issues? And if how can we mitigate it?
What we basically do is :
private IRazorEngineCompiledTemplate<TemplateBase> CompileTemplate(Type baseViewModelType, string templateContent)
{
return engine.Compile<TemplateBase>(templateContent, ConfigureEngine);
Beta Was this translation helpful? Give feedback.
All reactions