4 ms·
A profile can’t suggest a better algorithm.
by google234123 5y ago
A profile can’t suggest a better algorithm.
- GoOnThenDoTell 5y agoand a better algorithm can often be over-engineering, so it needs context in the question-giving
- nitrogen 5y agoA profiler will tell you whether a O(n log n) algorithm with a very high constant factor is better or worse for your situation than an O(n²) algorithm with a very low constant.