Summary
This chapter took an in-depth look at Java object pooling. It was suggested that object pooling is an important technique for ensuring our Java applications perform at a high level. Armed with theoretical knowledge, the chapter explored the advantages and disadvantages of object pooling. We focused on areas such as memory, CPU use, and code complexity. Finally, we demonstrated how to create a performance testing plan, how to implement it, and how to analyze the results.
In the next chapter, we will focus on algorithm efficiencies. Our goal will be to ensure our algorithms have low time complexities. The chapter will demonstrate inefficient algorithms and how to transform them to support high performance.