C# and C++ Interoperability Development Series (Part 28): A Comprehensive Guide to Zero-Copy Technology with Three Efficient Solutions

C# and C++ Interoperability Development Series (Part 28): A Comprehensive Guide to Zero-Copy Technology with Three Efficient Solutions

Introduction In previous blog posts, we explored many practical techniques for calling C++ from C#. Today, we will continue to delve into “Zero-Copy Technology.” What is “Zero-Copy,” why is it crucial in high-performance scenarios, and how to correctly implement it during C# and C++ interoperability to avoid unnecessary data copying, maximize throughput, and reduce latency. … Read more

50 Lines of C Code for HTTP Parsing with Exceptional Performance!

50 Lines of C Code for HTTP Parsing with Exceptional Performance!

Introduction Have you ever wondered how lightweight an HTTP parser can be? Today, we will introduce a project—httplite—that implements a zero-copy, zero-allocation, dependency-free HTTP/1.1 parser in just 50 lines of C code. Even more impressive, it is fully compatible with the C89 standard and does not rely on the standard library! Sounds a bit “geeky,” … Read more

Linux Kernel Zero-Copy: The Art of Efficient Data Transfer

Linux Kernel Zero-Copy: The Art of Efficient Data Transfer

“Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.” — Antoine de Saint-Exupéry In 1991, when Linus Torvalds hammered out the first lines of Linux kernel code in his Helsinki University dorm room, he couldn’t have imagined that his “hobby project” would become the … Read more