Monday, April 21, 2008

Need for performance

Wrong Thoughts:

Some people think that the hardware power has been increased in the last few years and that makes them think that they can develop applications without taking in consideration the minimum requirements for their applications. For example: your application needs 150 MB in the memory to work and you found your team telling you: "Whatever, the laptops now support up to 4 GB, just release it.". This is totally wrong vision. You have to think if you are really in need to these 150 MB in memory, or you can optimize your code to reduce the memory required for your application.

Now, if your application is taking 3 seconds to perform a user task, the user will consider this application as a slow application. Later, we will find that it will be reduced to 1 second. The target now is to build applications with the highest performance we could reach. For example: if you have a list of objects and you need just one of them, you can loop to find it or you can think if you can get it when constructing that list. Try to use the latest tools like LinQ from Microsoft to search for an object in a list. Also, if you need some objects only from that list, try not to put them in another list, just try to remove the unwanted objects from it if that is possible.

All you need to do now is to think how to optimize your code to reach the maximum possible performance for your application. Do not think that you are protected by the increasing of the hardware power, just optimize your code.

Friday, April 18, 2008

My First Post

.Net Dimension, I spend a lot of time thinking about that title for this blog. One of my friends called Amr Sawy suggested this name for me. Thanks Amr for this name. I'll talk in this blog about any thing that carries Microsoft Name :) but my target is to build application using these products.