Get the latest tech news

Linux Pipes Are Slow


vmsplice is too fast Some programs use a particular system call “ vmsplice” to move data faster through a pipe. Francesco already did a deep dive on using vmsplice to make things fast.

It mitigates the cost of using a pipe by moving entire buffers from user space to the kernel without copying them. This program just writes an infinite number of'X' s. This will simplify the profiling by not having any time dedicated to compute Fizz Buzz data or something else. And this is because, when writing to a pipe, we need to spend a lot of time taking a lock, and we cannot use vector instructions efficiently.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux Pipes Are Slow

Linux Pipes Are Slow