um yeah object pooling (someone made a script here but idk if its good) and parallel computing are gonna be your best friends for optimization
generally for optimizing performance, try and look for places where you can sacrifice memory to be able to do less calculating