- 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.
- Visual C++串口通信開發(fā)入門與編程實踐
- Boost C++ Application Development Cookbook(Second Edition)
- SpringMVC+MyBatis快速開發(fā)與項目實戰(zhàn)
- 從程序員到架構(gòu)師:大數(shù)據(jù)量、緩存、高并發(fā)、微服務(wù)、多團隊協(xié)同等核心場景實戰(zhàn)
- Lua程序設(shè)計(第4版)
- 微信公眾平臺開發(fā):從零基礎(chǔ)到ThinkPHP5高性能框架實踐
- 編程數(shù)學
- C語言程序設(shè)計
- RESTful Java Web Services(Second Edition)
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- Mastering React
- Training Systems Using Python Statistical Modeling
- Spring Data JPA從入門到精通
- UML基礎(chǔ)與Rose建模實用教程(第三版)
- Java程序設(shè)計入門(第2版)