|
|
|
|
|
by blibble
1275 days ago
|
|
that Write() doesn't call fsync() though, does it? so there's no buffering going on in the application, but the bytes almost certainly don't hit the disk before Write() returns they've just been staged into an OS buffer, with the OS promising to write them out to the disk at a later time (probably, maybe...? hopefully!) which is exactly the same as a regular TCP socket (with Nagle disabled, i.e. the default, non Go way) |
|
One write == one syscall, easy. If you want buffering, you add it.