Closed Stebalien closed 10 months ago
Ok, I though this was N^C
which would usually be N^3
. It's not, it's CN^2
, which isn't nearly as bad. I.e.:
A*B + (A+B)*C + (A+B+C)*D + ...
Actually, I'm completely wrong. The old logic is CN
as well.
I.e.:
~Make it run in C*N time instead of N^C (where C is the number of batches and N is the length of the batch).~
This is hardly the most important code to optimize, but...