Worked a bit on #CommonSubexpressionElimination #CSE today. Saving one addition in the perturbation inner loop makes #BurningShip take 6% less CPU time in that phase. Doing some more for the derivatives saves 17% overall. Other formulas show higher savings, but it's slow doing these by hand (KF has around 100 formulas, today I optimized 5 of them...).
#burningship #cse #CommonSubexpressionElimination