Back to Writing
NOTESunityjob-systemperformancenative-container
Unity Job System: NativeContainer Allocator Selection Guide
September 1, 2019•Updated Feb 17, 2026
When using the Unity Job System, you'll almost always need NativeContainers like NativeArray.
How you allocate memory has a significant impact on both performance and lifetime, making Allocator selection critical.
- Allocator.Temp: The fastest allocation mode. Best suited for extremely short-lived operations lasting one frame or less.
- Allocator.TempJob: Mid-tier performance. Suitable for operations completing within 4 frames, with thread safety support.
- Allocator.Persistent: The slowest option, but appropriate for data that needs to persist across the application lifecycle.