Mastering High Performance with Kotlin: Understanding how to use Kotlin features with minimal overhead
暫譯: 精通高效能的 Kotlin:了解如何以最小開銷使用 Kotlin 特性

Igor Kucherenko

  • 出版商: Packt Publishing
  • 出版日期: 2018-06-15
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 316
  • 裝訂: Paperback
  • ISBN: 178899664X
  • ISBN-13: 9781788996648
  • 相關分類: JVM 語言
  • 海外代購書籍(需單獨結帳)

商品描述

Find out how to write Kotlin code without overhead and how to use different profiling tools and bytecode viewer to inspect expressions of Kotlin language.

Key Features

  • Apply modern Kotlin features to speed up processing and implement highly efficient and reliable codes.
  • Learn memory optimization, concurrency, multi-threading, scaling, and caching techniques to achieve high performance.
  • Learn how to prevent unnecessary overhead and use profiling tools to detect performance issues.

Book Description

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

What you will learn

  • Understand the importance of high performance
  • Learn performance metrics
  • Learn popular design patterns currently being used in Kotlin
  • Understand how to apply modern Kotlin features to data processing
  • Learn how to use profling tools
  • Discover how to read bytecode
  • Learn to perform memory optimizations
  • Uncover approaches to the multithreading environment

Who This Book Is For

This book is for Kotlin developers who would like to build reliable and high-performance applications. Prior Kotlin programming knowledge is assumed.

Table of Contents

  1. Identifying performance bottlenecks
  2. Identifying indicators of performance issues
  3. Learning how to use profiling tools
  4. Preventing unnecessary overhead using functional approach
  5. Enhancing performance of collections
  6. Optimizing access to fields
  7. Preventing unnecessary overhead using Delegated Properties
  8. Working with Ranges and Identifying performance issues
  9. Multithreading and Reactive programming
  10. Best practices

商品描述(中文翻譯)

了解如何撰寫無開銷的 Kotlin 代碼,以及如何使用不同的性能分析工具和字節碼檢視器來檢查 Kotlin 語言的表達式。

主要特點



  • 應用現代 Kotlin 特性來加速處理並實現高效且可靠的代碼。

  • 學習記憶體優化、併發、多執行緒、擴展和快取技術,以達成高性能。

  • 學習如何防止不必要的開銷,並使用性能分析工具來檢測性能問題。

書籍描述


我們撰寫應用程式的便利性不斷提高,但隨之而來的是需要解決其性能的需求。在輕鬆實現複雜應用程式與保持其性能最佳之間的平衡,是當今的必要要求。在本書中,我們探討如何在使用 Kotlin 開發和部署應用程式的過程中達成這一關鍵平衡。


本書首先分析各種 Kotlin 規範,以識別那些可能對性能產生不利影響的規範。接著,我們將進入監控技術,這些技術使我們能夠識別性能瓶頸並優化性能指標。然後,我們將探討幫助我們實現高性能的技術:記憶體優化、併發、多執行緒、擴展和快取。我們還將研究容錯解決方案及日誌記錄的重要性。我們還將涵蓋 Kotlin 編程的最佳實踐,幫助您提高代碼庫的質量。


在本書結束時,您將對各種技術和解決方案有一定的了解,這些將幫助您在 Kotlin 環境中創建高性能的應用程式。

您將學到什麼



  • 理解高性能的重要性

  • 學習性能指標

  • 學習目前在 Kotlin 中使用的流行設計模式

  • 理解如何將現代 Kotlin 特性應用於數據處理

  • 學習如何使用性能分析工具

  • 發現如何閱讀字節碼

  • 學習執行記憶體優化

  • 揭示多執行緒環境的處理方法

本書適合誰


本書適合希望構建可靠且高性能應用程式的 Kotlin 開發者。假設讀者具備先前的 Kotlin 編程知識。

目錄



  1. 識別性能瓶頸

  2. 識別性能問題的指標

  3. 學習如何使用性能分析工具

  4. 使用函數式方法防止不必要的開銷

  5. 增強集合的性能

  6. 優化對字段的訪問

  7. 使用委託屬性防止不必要的開銷

  8. 處理範圍並識別性能問題

  9. 多執行緒和反應式編程

  10. 最佳實踐