- Mastering High Performance with Kotlin
- Igor Kucherenko
- 172字
- 2021-06-25 20:55:21
Garbage collection
Garbage collection is a strategy for automatically detecting memory allocated to objects that are no longer usable in a program and returning that allocated memory to the pool of free memory locations. All memory management techniques, including garbage collection, take a significant proportion of a program's total processing time and, as a result, can greatly influence performance. With modern, optimized garbage collection algorithms, memory can be released faster than with manual memory management. But depending on the application, the opposite can also be true, and many developers prefer to deallocate memory themselves. One of the biggest advantages that manual memory management has is the ability to reclaim resources before an object is destroyed. This process is referred to as finalization, and we'll touch on it further because it can also be a performance issue.
Memory management is an essential process that's applied to the computer memory. Since the JVM uses automatic memory management with the garbage collection strategy we should know what it is and how it works.
- 測試驅動開發:入門、實戰與進階
- AWS Serverless架構:使用AWS從傳統部署方式向Serverless架構遷移
- 編程珠璣(續)
- 差分進化算法及其高維多目標優化應用
- Python完全自學教程
- Windows Server 2016 Automation with PowerShell Cookbook(Second Edition)
- Haskell Data Analysis Cookbook
- Getting Started with LLVM Core Libraries
- Extending Puppet(Second Edition)
- Learning Material Design
- Kotlin Programming By Example
- HTML5+CSS3+JavaScript 從入門到項目實踐(超值版)
- 分布式數據庫原理、架構與實踐
- Android Sensor Programming By Example
- Python趣味創意編程