News for hackers. Stuff that matters.
Re:I/O library 6x faster than fmt, 10x faster than stdio.h a... by m00dy on Tuesday May 26, 2020 @06:32AM (#23309335)
same here. All i/o libraries eventually hit OS barrier. I can't really see how it could be optimised to gain 6x speed up. I/O libraries are basically transporters between userland and kernel space.
Re:I/O library 6x faster than fmt, 10x faster than stdio.h a... by usefulcat on Tuesday May 26, 2020 @01:25PM (#23313897)
Not when formatting is involved. stdio and iostreams are notoriously not particularly fast when it comes to formatting. So, while I don't know anything about this particular library, the 6x figure does not sound suspicious to me.

Source: have spent a fair amount of time working on speeding up human-readable log output, the performance of which tends to be dominated by formatting.

Re:I/O library 6x faster than fmt, 10x faster than stdio.h a... by vitaut on Tuesday May 26, 2020 @12:59PM (#23313541)
> All i/o libraries eventually hit OS barrier

Indeed.

> I can't really see how it could be optimised to gain 6x speed up.

Performance claims appear to not even be based on I/O but only on two formatting microbenchmarks and are severely misleading https://news.ycombinator.com/item?id=23311726