fstream should not use BUFSIZ macro on windows. Instead it should set as 4096
sotrdg sotrdg
euloanty@live.com
Mon Jul 6 19:33:54 GMT 2020
Stdio on windows uses 4096 as the real I/O buffer size. However, BUFSIZ macro on MSVCRT and UCRT is wrongly set as 512 which causes massively slowing down of I/O performance on windows. I think std::filebuf and __gnu_cxx::stdio_filebuf should use 4096 as buffer size on windows.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
More information about the Libstdc++
mailing list