# Class ExpressionsCompilerOptions OptimaJet.Workflow.Core.CodeActions.ExpressionsCompilerOptions Configures batch-compilation concurrency and optional garbage collection after compiled delegates are created by [ExpressionsCompiler](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/). Namespace: [OptimaJet.Workflow.Core.CodeActions](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/) ```csharp public class ExpressionsCompilerOptions ``` ## Properties `public int DegreeOfParallelism { get; set; }` Gets or sets the maximum number of transitions processed concurrently when [ExpressionsCompiler.CompileExpressions(ProcessDefinition)](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/) or [ExpressionsCompiler.CompileSubprocessNameGetters(ProcessDefinition)](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/) compiles delegates for a process scheme. `public bool ForceGarbageCollection { get; set; }` Gets or sets whether [GC.Collect()](https://learn.microsoft.com/dotnet/api/system.gc.collect#system-gc-collect) is invoked after each expression delegate is successfully compiled. `public static ExpressionsCompilerOptions Default { get; }` Gets the shared mutable options instance used as the initial value of [ExpressionsCompiler.Options](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/). ### Remarks Changes made to this instance are retained and affect [ExpressionsCompiler.Options](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/) while it references the same instance. `public static ExpressionsCompilerOptions Forced { get; }` Gets the shared mutable preset intended to reduce peak memory usage by compiling one transition delegate at a time and requesting a garbage-collection cycle after each compilation. ### Remarks Changes made to this shared instance are retained for subsequent uses. [Previous ExpressionsCompiler](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsCompiler/) [Next ExpressionsInvoker](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.CodeActions/ExpressionsInvoker/)