What's a Memory Allocator Anyway? - Benjamin Feng

Zig SHOWTIME3 HN recommenders · 2020–2021
89K views · talk · evergreen · Uploaded 2020-06-29

A Zig SHOWTIME talk by Benjamin Feng on what a memory allocator is, followed by an interview. It covers allocation strategies and different allocator types in Zig.

Recommended as a quick, clear overview of allocators and arenas that also shows how Zig approaches allocation.

Watch on YouTube

3 comments from Hacker News

@snicker72020 · in “Custom Allocators Demystified”

Would recommend watching the "What's a Memory Allocator, Anyway?" talk from Zig contributor Benjamin Feng: [VIDEO]

RecommendsView on HN
@Rendello2021 · in “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. [VIDEO]

RecommendsView on HN
@kristoff_it2021 · in “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 [VIDEO]

RecommendsView on HN