My thoughts as an enterprise Java developer.

Sunday, February 20, 2022

Minimize scope

 "Minimizing the scope of your objects gives the highest chance for escape analysis to be applied and avoid creating objects in the heap, creating them on the stack instead, which avoids the GC overhead of the object."

http://www.javaperformancetuning.com/news/newtips254.shtml

No comments: