Tagged articles
3 articles
Page 1 of 1
FunTester
FunTester
Jan 26, 2025 · Backend Development

Boost Go Performance: Master Stack Allocation and Cut Heap Usage

This article explains how Go developers can reduce heap allocations and improve runtime efficiency by understanding stack vs. heap, avoiding pointer and interface misuse, pre‑allocating slices, leveraging escape analysis, and reusing objects with sync.Pool.

Escape AnalysisGoMemory Management
0 likes · 8 min read
Boost Go Performance: Master Stack Allocation and Cut Heap Usage
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2024 · Backend Development

Understanding Java Object Allocation: Stack Allocation, TLAB, and Performance Impact

This article examines a Java micro‑benchmark that measures object creation time, explains why printing objects dramatically slows execution, and details JVM allocation strategies such as stack allocation, escape analysis, scalar replacement, and Thread‑Local Allocation Buffers (TLAB) with relevant parameters.

JVMObject AllocationStack Allocation
0 likes · 6 min read
Understanding Java Object Allocation: Stack Allocation, TLAB, and Performance Impact