Tagged articles

stack memory

4 articles · Page 1 of 1
Deepin Linux
Deepin Linux
Jul 29, 2026 · Fundamentals

Why Stack Memory Allocation Is Faster Than Heap Allocation

The article explains that stack memory allocation is quicker than heap allocation because the stack uses a simple pointer move and LIFO order, while the heap must search for free blocks, manage fragmentation, and often requires explicit deallocation, leading to higher overhead and potential leaks.

C#heap memoryinterview
0 likes · 65 min read
Why Stack Memory Allocation Is Faster Than Heap Allocation
Tencent Cloud Developer
Tencent Cloud Developer
Sep 14, 2022 · Backend Development

Understanding Go Stack Memory Management

The article explains how Go’s runtime manages goroutine stacks—starting with a 2 KB initial size, evolving from segmented to continuous stacks, detailing allocation via stackpool and stackLarge, expansion with runtime.newstack, shrinkage by the garbage collector, and the internal structures that coordinate these processes.

GoMemory Managementruntime
0 likes · 15 min read
Understanding Go Stack Memory Management
Full-Stack Trendsetter
Full-Stack Trendsetter
Jan 27, 2022 · Fundamentals

Understanding the Difference Between JavaScript Stack and Heap Memory

The article explains how JavaScript engines store variables in stack and heap memory, clarifies why const primitives are immutable while object properties can change, shows that new objects reside in heap, and discusses allocation efficiency and garbage‑collection behavior of both memory regions.

Garbage CollectionJavaScriptMemory Management
0 likes · 5 min read
Understanding the Difference Between JavaScript Stack and Heap Memory