Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Java
Expertise: Advanced
May 5, 2009



Application Security Testing: An Integral Part of DevOps

Avoid Object Instantiation Within Loops

Avoid defining new objects within loop structures. Doing so hampers performance significantly, due to object creation overhead.

Instead, define objects outside the loop and then use them inside the loop. Moving object definitions out of your loops can often improve loop performance by nearly 100 percent.

If you want to see the actual effect, try using a profiler plugin such as jprobe or the Eclipse Test & Performance Tools Platform (TPTP) profiling tool.

Kulkarni Vasudeva
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date