Files:
Unity.Entities.Hybrid - BakingUtility.cs static void PreprocessBake (line 103)
settings.BakingSystemFilterSettings which involves virtual method call is called in a loop per every system type. Can improve performance by caching in a local variable before going through the loop.
Next:
Unity.Entities.Hybrid - BakedEntityData.cs public void ApplyBakeInstructions (line 428)
In a loop at line 716 which goes over every single bake component (can count in several thousands depending on how big subscene is) - every single baker instance gets recalculated for it's enabled state, even though result will be the same each time.
Will **MASSIVELY **improve performance by moving this code outside of loop.