4 ms·
Because one does not just profile their code. It branches, different parts do different things. You need to run the code with sensible input, multiple different
by sfn42 1y ago
Because one does not just profile their code. It branches, different parts do different things. You need to run the code with sensible input, multiple different inputs to hit the different branches etc.
If you have a good workflow that includes profiling your code that's cool, it's probably a good way to improve the performance of your code. But personally I think it's enough to test the code and make sure it works and is reasonably fast. I'm not going to spend time eliminating nano and low digit milliseconds.
If something actually keeps users waiting I'll look into it. As long as it's near instant it's good enough for me.