Relevant stackoverflow issue
Hi, I'm not sure if this issue has been posted before since it seems to be very old, but I haven't found anything other than the linked post.
The write operation on Windows is significantly slower than stdio's fwrite operations for multiple small writes due to the lack of buffering in windows_file_write in SDL_iostream.c along with the use of the direct WriteFile system call. Is using the Windows' CRT stdio calls rather than the system calls an option or could a buffer be added so SDL IOStream has consistent write behavior and performance for platforms with stdio and Windows?