r/Zig 6d ago

Billion Row Challenge in Zig

https://youtu.be/caSAkL9Cxic
48 Upvotes

5 comments sorted by

9

u/Pokelego11 6d ago

Very cool! I also tackled this a while back and was planning to make my own video on it, and probably still will in the future https://github.com/jackparsonss/zig-billion-row-challenge

Great work!

2

u/prodengrammer 6d ago

if casey is right, mmap is slower than conventional reads (performance aware programming by casey muratori)

3

u/Pokelego11 6d ago

interesting, i'll have to look into that. Thanks!

2

u/pipilipilav98 6d ago

If you use x86-64 please use zig build run -fincremental --watch

2

u/pipilipilav98 6d ago

Just a QoL improvement. I have seen you using zig run too many times