Open trcrsired opened 1 month ago
LLVM and GCC are here: https://github.com/trcrsired/gcc-releases/releases https://github.com/trcrsired/llvm-releases/releases
GCC and LLVM build scripts: https://github.com/trcrsired/toolchainbuildscripts/blob/main/llvm/x86_64-windows-gnu.sh
I think its a known issue for many years.
Any solution or workaround?
I think its a known issue for many years.
Any solution or workaround?
i guess the only solution is to use my fast_io
instead? i guess no one wants to get into trouble with iostream
Does not seem to be fixable based on what jwakely said.
This is at least 20x slower than libstdc++, and I am sure it is not the buffering part but the formatting part that is slow since the
fast_io::filebuf_file
isn't slow.https://github.com/cppfastio/fast_io/blob/next/benchmark/0002.file_io_tsc/time/fstream.cc
Benchmark is here.
filebuf_file
implementation (wrapper aroundstd::basic_filebuf
): https://github.com/cppfastio/fast_io/blob/next/include/fast_io_legacy_impl/filebuf/filebuf_file.h https://github.com/cppfastio/fast_io/blob/next/include/fast_io_legacy_impl/filebuf/fp_hack/libc%2B%2B.h https://github.com/cppfastio/fast_io/blob/next/include/fast_io_legacy_impl/filebuf/fp_hack/libstdc%2B%2B.h https://github.com/cppfastio/fast_io/blob/next/include/fast_io_legacy_impl/filebuf/fp_hack/msvc_stl.h