Comment it… It will run better

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:


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 🙂


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: