mirror of
https://github.com/nasa/trick.git
synced 2025-02-07 11:20:24 +00:00
std::endl flushes the output stream. The SIE functions were using it multiple times per variable. This can have significant performance impacts on file I/O. In testing, the S_sie.resource file for SIM_parachute was flushed over 14000 times, each resulting in a separate write system call. With this patch, only ~40 write calls were performed, and writing the file took ~1/3 as long. For more information, see https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rio-endl