[C# Job System] How / when to manage TransformAccessArray?

Hi @gilzoide , thanks for your comprehensive tips.
However, I noticed that when I modify my TransformAccessArray with Add() or RemoveAtSwapBack(), there will be a TransformAccessArray.Sort in main thread, causing a large overhead of IJobParallelForTransform.Schedule(). Is there any way to fix this?

Edit: I realized that TransformAccessArray.Sort only added negligible overheads.

Sometimes IJobParallelForTransform.Schedule() are blocked for half a milisecond even without TransformAccessArray.Sort. It looks like Schedule() is waiting for Jobs to finish.

I’ve created a thread: Question - Large overhead of IJobParallelForTransform.Schedule - Unity Forum