TLDR Web Dev · ARTICLES & TUTORIALS
PARSING PROTOBUF AT 2+GB/S: HOW I LEARNED TO LOVE TAIL CALLS IN C
Summary from the TLDR Web Dev newsletter
This blog post discusses a novel technique for optimizing interpreter loops and protobuf parsing using tail calls in C. The author discovered that by utilizing the `[[clang::musttail]]` attribute, they got a huge performance boost, achieving protobuf parsing speeds exceeding 2 GB/s. The key benefit of tail calls is the elimination of function call overhead, resulting in more efficient control flow and reduced stack usage.