tag:blogger.com,1999:blog-19094684.post3554552310034358196..comments2020-02-26T23:43:42.904-08:00Comments on Basics Uncovered...: Java Performance tips & Programming practice for NewbiesAnonymoushttp://www.blogger.com/profile/04071781861668379523noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-19094684.post-17907527540804221982007-07-01T09:43:00.000-07:002007-07-01T09:43:00.000-07:00Good post buddy! Lot of take aways in them. But yo...Good post buddy! Lot of take aways in them. <BR/><BR/>But you call call this as a punch dialog, "I was committing almost all of these mistakes when I came out of the college" Nice practice and will try to follow them.Vijeshhttps://www.blogger.com/profile/18155433751670204131noreply@blogger.comtag:blogger.com,1999:blog-19094684.post-57390691061687647482007-06-29T03:21:00.000-07:002007-06-29T03:21:00.000-07:00yes, there will compiler optimization to get you t...yes, there will compiler optimization to get you the object length faster. But still method has its own overhead of pushing in & popping out methods in and out of the stack space. So, its better to inline that one. When we tested Axion DB after removing these kinds of method calls, performance improved by 6 seconds when operating on a CSV file with 1 million rows. If you are absolutely concerned about your code speed & performance, this really helps a lot.Anonymoushttps://www.blogger.com/profile/04071781861668379523noreply@blogger.comtag:blogger.com,1999:blog-19094684.post-22927785552604910552007-06-28T22:05:00.000-07:002007-06-28T22:05:00.000-07:00Good one Karthi and will be useful.Don't you think...Good one Karthi and will be useful.<BR/>Don't you think the obj.length() method called a million times be optimized by the compiler if there was no chane to the obj properties in the mean time. This is too much to ask. Just I wanted to know...<BR/><BR/>We have read abt compiler optimizations. Hope such optimizations are handled in the Java->Object code generation phase.I would like to know what possible optimizations happen during Interpretation and subsequent executionsbharathhttps://www.blogger.com/profile/11329053395610935200noreply@blogger.com