Why is glibc's fwrite_unlocked faster than the write syscall?
Name:
Anonymous2011-01-06 14:45
You also need to understand that fwrite is double-buffered. If you use write, it's only single buffered unless you created the file handle with buffering disabled. puts is probably single-buffered too.