Skip to content

Commit

Permalink
Issue #6: CodeCom Evaluator gets slower after many LoadCode iteration…
Browse files Browse the repository at this point in the history
…s (added Roslyn and Mono support)
  • Loading branch information
taras-au committed Jul 7, 2016
1 parent d231688 commit 6fb0251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Source/CSScriptLibrary/CSScriptLib.Eval.Mono.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public MonoEvaluator()
{
ThrowOnError = true;
AutoResetEvaluatorOnError = true;
Reset(true);
if (CSScript.EvaluatorConfig.RefernceDomainAsemblies)
ReferenceDomainAssemblies();
DebugBuild = CSScript.EvaluatorConfig.DebugBuild;
}

Expand Down
3 changes: 2 additions & 1 deletion Source/CSScriptLibrary/CSScriptLib.Eval.Roslyn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ public class RoslynEvaluator : IEvaluator
/// </summary>
public RoslynEvaluator()
{
Reset(true);
if (CSScript.EvaluatorConfig.RefernceDomainAsemblies)
ReferenceDomainAssemblies();
}

/// <summary>
Expand Down

0 comments on commit 6fb0251

Please # to comment.