Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

RMS Matthew Stallman's magic library

Name: Anonymous 2011-01-06 12:33

Why is glibc's fwrite_unlocked faster than the write syscall?

Name: Anonymous 2011-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.

Try using write instead of fwrite.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List