Joe Mckay personal blog

Indices, not Pointers

There is a pattern I’ve learned while using Zig which I’ve never seen used in any other language. It’s an extremely simple trick which - when applied to a data structure - reduces memory usage, reduces memory allocations, speeds up accesses, makes freeing instantaneous, and generally makes everything much, much…
Points
104
HN comments
60
Submissions
1
Cited by
0 commenters

Software EngineeringSystems & Performance2025

On Hacker News

SubmittedTitle on HNPointsComments
Sep 2, 2025Indices, not Pointers by vitalnodo10460

Related posts from the same era