# CodeOptimization

> Indicates whether performance optimization is enabled for the assembly

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.Compilation](/engine/6000.7/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public CodeOptimization CodeOptimization { get; set; }
```

### Remarks

Set this property to true to enable performance optimization for the assembly.
