-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
High Performance with Java
By :
Now that you understand what object pooling is and how to implement it in Java, we should consider if this is the right strategy for our application. With most application code optimization approaches, there are both advantages and disadvantages. This section looks at both.
There are several potential advantages of using object pooling. These advantages can be grouped into performance, resource management, and scalability categories.
Implementing object pooling stands to allow us to avoid the overhead from object creation. This approach is especially useful in high transaction applications and when system response time is important. Through object pooling, we can help ensure our Java applications are able to be more performant by avoiding excessive object creation.
We can also experience consistent performance between app usage. For example, using object pooling should result in consistent...