Friday, June 27, 2008

Performance- day to day challenge for the developer

Here are some tips for improving performance of app.
1. Algorithms- should be logical and perfect, per business need
2. Database- create Indexes and optimize queries
3. Find the blocking factor. is it UI or network or Database. Mostly in the same order. Many UIs are not coded properly so causing performance issue. Next thing is network and then followed by DB. Most of the DBs are faster and better than networks.
4. Logging and exceptions- try logging on different machine than where App is running as log eats memory. Try to be logical in what is logged and how it is used.
5. Show the user on what is going on. May be progress bar or indicator else user thinks differently.
6. Cache- try to cache when you need results again. But measure the difference of performance between recalculating and cache. If you use cache, do not forget about releasing cache objects once done.

No comments: