Book Image

Mastering High Performance with Kotlin

Book Image

Mastering High Performance with Kotlin

Overview of this book

The ease with which we write applications has been increasing, but with it comes the need to address their performance. A balancing act between easily implementing complex applications and keeping their performance optimal is a present-day requirement In this book, we explore how to achieve this crucial balance, while developing and deploying applications with Kotlin. The book starts by analyzing various Kotlin specifcations to identify those that have a potentially adverse effect on performance. Then, we move on to monitor techniques that enable us to identify performance bottlenecks and optimize performance metrics. Next, we look at techniques that help to us achieve high performance: memory optimization, concurrency, multi threading, scaling, and caching. We also look at fault tolerance solutions and the importance of logging. We'll also cover best practices of Kotlin programming that will help you to improve the quality of your code base. By the end of the book, you will have gained some insight into various techniques and solutions that will help to create high-performance applications in the Kotlin environment
Table of Contents (12 chapters)

Learning How to Use Profiling Tools

By now, we have an understanding of what performance is. We also know which system bottlenecks lead to performance issues and how they do so. It's safe to assume that we're ready to talk about how to prevent these problems. It's much better to be proactive than reactive when it comes to potential problems, as the situation becomes much worse once the product has been released and is in the hands of actual users.

There are a lot of approaches and tools for detecting performance issues at the development stage. It's essential to detect these issues before releasing a product, and even before testing, because no one knows how your system works under the hood better than you. In this chapter, we'll talk about how to use various profiling tools, monitors, and viewers. We'll also observe how threads work, how much memory...