Java Object Pooling
Our mission to make our Java applications highly performant includes a look at Java object pooling. This chapter dives into the concept of object pooling in Java and how to achieve high performance with them in your Java applications.
The chapter begins with an explanation of object pooling and how to implement an object pool in Java. Sample code is provided to help you understand object pooling operations specific to the Java programming language. You will also have the opportunity to learn about the advantages and disadvantages of object pooling in Java. Finally, the chapter shows how you can implement performance testing with Java object pools.
This chapter covers the following main topics:
- Jumping into the object pool
- Advantages and disadvantages
- Performance testing
By the end of this chapter, you should have a strong theoretical understanding of Java object pooling as well as hands-on implementation experience. This experience can...