8 ms·
To an extent I feel like there is a dividing line in the type of optimisations that I should aim for. I'd aim for Typed arrays and avoiding intermediary object
by Lerc 9y ago
To an extent I feel like there is a dividing line in the type of optimisations that I should aim for.
I'd aim for Typed arrays and avoiding intermediary object creation, because those reduce the intrinsic work load (especially for things like float32 where you are giving a nod to the system to allow slightly worse results)
Aything where the optimiser should be able to figure out what to do I'm much more hesitant. Inining variables is something that I don't feel should be neccessary.
Anything that is just massaging the optimiser into making the right desicion runs the risk of making it worse on a different engine. That different engine may even be a later version of your current engine.