3 ms·
Really? You didn’t even mention reducing system calls? That’s basically what full_write does: try to output a whole buffer with one system call. In your regula
by kccqzy 9y ago
Really? You didn’t even mention reducing system calls? That’s basically what full_write does: try to output a whole buffer with one system call.
In your regular program, even with just a normal setvbuf call to set up block buffering would make a huge difference.