unitbuffered vs unbuffered

Started by
0 comments, last by Fruny 17 years, 12 months ago
Can someone explain me what us unbuffered and unit buffered.I mean the difference. And which is better??
Advertisement
A unit buffered stream is an otherwise buffered stream that is flushed after each operation. Neither is better, it depends on your needs: sending data in smaller, more frequent chunk will cause a performance hit, but in case of a crash some of the data may have reached the device that would otherwise be lost in the buffer.
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement