M
monade
Hi,
i have a file stream
std:fstream file
and some data
std::string data
to serialize in a performance sensitive code section:
file << data << '\n'
I know that the data will be flushed when the streambuffer is full and
that writing to hard disk takes some time. Is the last line a
potentially blocking operation and if so, how do I avoid this?
My STL implementation is from visual c++.
i have a file stream
std:fstream file
and some data
std::string data
to serialize in a performance sensitive code section:
file << data << '\n'
I know that the data will be flushed when the streambuffer is full and
that writing to hard disk takes some time. Is the last line a
potentially blocking operation and if so, how do I avoid this?
My STL implementation is from visual c++.