--
You received this message because you are subscribed to a topic in the Google Groups "CS-Script" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cs-script/NgzgxMKEfvQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cs-script+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group and all its topics, send an email to cs-script+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to cs-script+...@googlegroups.com.
The problem with the CodeDom script compilation is that it is performance-expensive at the compilation time and it is not immune to the CLR assembly unloading problem. The compiler-as-service (Mono.Evaluator) expected to solve this problem. And it did. However Mono.Evaluator created certain ambiguity with respect to the memory leaks.The MemoryManagement.cs sample demonstrates various hosting scenarios implemented with CSScript.Evaluator (very light API adapter/wrapper around Mono.Evaluator). All of these scenarios exhibited memory leaks except one: "Fixed script". And this scenario is the one that CSScript.Evaluator is recommended for.
--You received this message because you are subscribed to the Google Groups "CS-Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs-script+...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "CS-Script" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cs-script/NgzgxMKEfvQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cs-script+...@googlegroups.com.
Thanks for your very comprehensive answer! I'll check out your test on monday an change the code accordingly then I will get back with my results.Jens BengtssonSent from my iPhone
What I meant is that I see in your code cloning of Document and it was not clear if the Batch (containing Documents) is ever released. However it is irrelevant now as I have prepared the test case for you and now I am confident that the problem is in not in your code but in the the Mono.Evaluator (part of CS-Script).The problem with the CodeDom script compilation is that it is performance-expensive at the compilation time and it is not immune to the CLR assembly unloading problem. The compiler-as-service (Mono.Evaluator) expected to solve this problem. And it did. However Mono.Evaluator created certain ambiguity with respect to the memory leaks.The MemoryManagement.cs sample demonstrates various hosting scenarios implemented with CSScript.Evaluator (very light API adapter/wrapper around Mono.Evaluator). All of these scenarios exhibited memory leaks except one: "Fixed script". And this scenario is the one that CSScript.Evaluator is recommended for.To my surprise your use case is consistent with the "Fixed script" scenario and yet if it is profiled with the same technique as in MemoryManagement.cs sample it also leaks. All this means that I will need to investigate deeply what is triggering the problem and log the report to Mono defect tracking system (unless of course I discover some CS-Script flaw).Also it means that cannot use CSScript.Evaluator for your hosting scenario.However it is not so bad as in your case you are not facing the task of the execution of an infinite number of constantly changing scripts. Thus for you the CodeDome compilation is preferred anyway.Thus I have prepared the comprehensive profiling test case for you: https://dl.dropboxusercontent.com/u/2192462/Support/Jens%20Ben..son/Jens%20Ben..son.7z
This sample demonstrates how to leverage the poor performance of the default CodeDome compilation with the appropriate caching. For your case I would suggest "CodeDom_InMemoryCaching" sample. It allows no memory leaks and ~30 times faster then CScript.Evaluator.
Cheers,Oleg
On Sat, Jun 1, 2013 at 2:36 AM, <poser...@gmail.com> wrote:
OK. :)
Don't really know why it's expected to leak since the ironpython implementation doesn't have any issues.
--
On Friday, May 31, 2013 3:16:18 PM UTC+2, Oleg Shilo wrote:After having a quick look at your code I got an impression that that it is expected to leak but not because of scripting.will prepare the proper test case for you tomorrow. It is almost midnight here in Australia ;o)
You received this message because you are subscribed to the Google Groups "CS-Script" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cs-script+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "CS-Script" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cs-script/NgzgxMKEfvQ/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to cs-script+unsubscribe@googlegroups.com.