News for hackers. Stuff that matters.
Re:How fast are Linux pipes anyway? by kaba0 on Friday June 03, 2022 @05:56AM (#31606294)
It is optimized quite seriously. I remember there was a comparison of it with I believe a BSD version, where the latter was thousands time more readable (although slower).
Re:How fast are Linux pipes anyway? by jolmg on Friday June 03, 2022 @06:32PM (#31614515)
I'm getting ~3.10GiB/s with both GNU's and FreeBSD's. I do see that GNU's version has some optimizations, but their effectiveness isn't apparent when doing `yes | pv > /dev/null`.

However, my point was just that its performance was never a main point of it. Even without optimizations, it's still very fast, and I don't think whoever created it first was concerned with it having to be super fast, as long as it was faster than the prompts of whatever was downstream in the pipe.

Re:How fast are Linux pipes anyway? by zbentley on Saturday June 04, 2022 @07:21AM (#31619083)
It really is! It's been a few years since I saw the article on HN so I just reposted it: https://news.ycombinator.com/item?id=31619076