Reducing C compile time# when a Unity project grows
This article explains how to reduce C# compile time in a growing Unity project by splitting code into separate assemblies with Assembly Definition files (.asmdef). It shows how to measure real edit-to-test time in the Editor, when to use Editor Iteration Profiler, and why compile time alone may not be the main bottleneck if domain reload is slower. Using an Inventory example, it demonstrates how to divide code by dependency into Runtime, UI, and Editor assemblies, how different kinds of code changes affect the compile scope, and why keeping shared APIs stable helps incremental compilation. It also covers how to migrate an existing project step by step, starting with Runtime or an independent Editor tool, while managing references and Auto Referenced settings.