Skip to content
0:00 / 0:00

#zig#memoryallocation#arenaallocator

What's a Memory Allocator Anyway? - Benjamin Feng

Zig SHOWTIME

17K subscribers • 40 videos on Hallway

YouTube
  • Recommended by 5 people: 3 on Hacker News, 1 on Lobsters and 1 in engineering communities.
  • Presented by Benjamin Feng, Zig contributor

Intermediate. Assumes working knowledge.

89K views6 years ago5 recommendations

Systems programmingProgramming languagesZigMemory managementPerformance and optimization

Benjamin Feng explains the fundamentals of memory allocators, exploring different allocation strategies and how they are implemented in Zig.

From Zig SHOWTIME #5 zig.show Title Talk Interview

Why it's here

5 people recommend this

What people say. Recommended as an excellent, accessible overview of single-threaded memory allocation strategies and Zig's unique approach to memory management.

u/gary_oldman_sachsin r/Zig • Recommends

What's a Memory Allocator Anyway? - Benjamin Feng

dbremneron Lobsters • Recommends

What's a Memory Allocator Anyway? (2020)

snicker7on Hacker News • Recommends

On “Custom Allocators Demystified”

Would recommend watching the "What's a Memory Allocator, Anyway?" talk from Zig contributor Benjamin Feng: link to this video

Rendelloon Hacker News • Recommends

On “The effect of switching to TCMalloc on RocksDB memory use”

It's interesting that I saw this post minutes after watching the talk "What's a Memory Allocator Anyway?" by Benjamin Feng. It's ostensibly about Zig's allocation schemes, but it's more of a general overview of the varied (single-thread) allocation strategies in use today. It made me really want to try out arena allocators It's a quick watch at 1.5x speed, the last third is an interview. 1. link to this video

kristoff_iton Hacker News • Recommends

On “Drop millions of allocations by using a linked list (2015)”

For an overview of how Zig does this and at the same time a nice overview on different types of allocators: What's a Memory Allocator Anyway? by Benjamin Feng link to this video

u/qualia-assurancein r/C_Programming • Mentions

On “Using pointers to be gentler to RAM”

…case you want to start reading the source of such things. C is an obvious starting point. But if you're after learning about more modern allocation strategies then there's been quite a few things added to C++ over the last decade regarding allocators. And Zig has some really good stuff in the works. This talk is a good place to get up to speed. [video The alternative is that you push through the user space mirror and make your way in to wonderland - something I haven't done myself so I can only parrot hearsay. But Understanding the Linux Kernel and Linux Kernel Development are two popular books mentioned in such discussions. These cover a lot of the details behind how the Kernel request…

u/your_sweetpeain r/ProgrammingLanguages • Mentions

On “Books to better understand memory allocation.”

I don't have a book recommendation, but I recommend taking a look at the video What's a Memory Allocator Anyway?. It's Zig-focused since Zig has you pass around an allocator specifically, but it's a great foundation for thinking about allocation in general IMO.

u/alvarez_tomasin r/C_Programming • Mentions

On “Any way to allocate chunks of memory and use slices?”

link to this video This is a Zig-related talk but is a nice introduction to arena allocators (among others)