O'Reilly logo

Java EE 7 Performance Tuning and Optimization by Osama Oransa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fixing algorithmic/logic performance

Algorithm complexity (time/space) is the main evaluating factor for any algorithm. Here, time refers to the duration required to execute instructions/steps, while space refers to the space occupied by its data structure. Both are directly related to the performance of an algorithm.

When using an algorithm to resolve a problem in our application, search for the most efficient way to achieve that. This means we have to use an algorithm with minimal possible steps. If we already have an algorithm/logic, and need to optimize its performance, we first need to perform the following steps:

  • Understand the logic (its inputs and outputs) and why this logic is required
  • Evaluate the logic's performance
  • Find the areas that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required