I wrote a download library for my colleague. It writes downloaded data to files.
My colleagues found that the file remains small for a long time, even if 100 MB of data was downloaded.
Therefore, they suggest that I call flush() after each write() so that it does not take up memory to buffer this data.
But I don’t think that there is a lot of 100 MB of virtual memory, and I think that windows have their own reason for buffering a lot of data.
What do you think about it?
source share