In the last period, I had to review some code having performance problems.
As a first step, I am running a profiler. Then, in most cases I got this result:
LET US COMMENT THIS
Extra checks, Unnecessary DB transactions or any kind of unnecessary code requires extra processing. It will not be noticeable in simple test case. It will be raised only if a large number of concurrent users hitting the same area or when huge transactions executed.
Here I think the non-functional requirements are very important but unfortunately most of the time it is not given enough attention. Also stress testing is totally recommended.
For developers, don’t comment it just don’t write it will be much better 🙂