Book Image

Java 9 High Performance

By : Mayur Ramgir, Nick Samoylov
Book Image

Java 9 High Performance

By: Mayur Ramgir, Nick Samoylov

Overview of this book

Finally, a book that focuses on the practicalities rather than theory of Java application performance tuning. This book will be your one-stop guide to optimize the performance of your Java applications. We will begin by understanding the new features and APIs of Java 9. You will then be taught the practicalities of Java application performance tuning, how to make the best use of garbage collector, and find out how to optimize code with microbenchmarking. Moving ahead, you will be introduced to multithreading and learning about concurrent programming with Java 9 to build highly concurrent and efficient applications. You will learn how to fine tune your Java code for best results. You will discover techniques on how to benchmark performance and reduce various bottlenecks in your applications. We'll also cover best practices of Java programming that will help you improve the quality of your codebase. By the end of the book, you will be armed with the knowledge to build and deploy efficient, scalable, and concurrent applications in Java.
Table of Contents (11 chapters)

Understanding value trees

Understanding the value trees requires the understanding of how a tree structure is set up in Java. It is best described as a structure that does not use a linear representation of the data objects. The objects follow a hierarchical system where they are connected to each other in both a parallel and perpendicular manner.

The data present in a tree, such as the one created with a JSON structure, does not have the linear organization found in a simple array. The data elements that are present in a tree structure are usually saved in the form of nodes. There is a node at the tip of the structure, which is termed as the root node of the tree.

This tree structure is perfect when a linear presentation is simply not possible. This happens when there is a need to create a family of specific data elements. Java is able to deal with these trees since there are...