My C notebook. Each file answers one question I had: How much padding does glibc’s heap add? What’s in memory after realloc? Why is the first file descriptor you open 3? How do poll and epoll compare across 1,000 pipes?
wtf_is_c
Small C experiments on what's underneath: glibc heap padding, file descriptor numbering, and poll vs. epoll across 1,000 pipes.