re: Why I should check my code's performance? VIEW POST


When solving a small problem such as coding challenges, even we can see the difference from a performance test, but that comparison might be just 0.001 seconds vs 0.01 seconds, nobody can really tell and it has very little effect in the real world.

But all it is because coding challenges usually only employ very small dataset to prove the concepts or explain the algorithm easily. The story will be totally different once start uses bigger datasets.

The other side of this coin is that the dataset may remain small, but you invoke that bit of code hundreds or thousands or millions of times a day. It can really add up over time.

code of conduct - report abuse