This is the pull request that shuyi would've mentioned yesterday.
It changes the endls in cerr and cout statements to "\n"s. This is generally better practice as endl causes the program to flush writes to the filesystem. Frequent flushing can cause performance degradation. endl is only recommended when the output needs to be seen immediately e.g., after info or debug messages.
I can confirm that the modified program produces identical results for Shuyi's pipeline.
I unfortunately couldn't reproduce the error messages ITS had initially brought up, so I can't 100% confirm that removing the endl's resolves this.
Hi @nadiadavidson
This is the pull request that shuyi would've mentioned yesterday.
It changes the
endl
s incerr
andcout
statements to"\n"
s. This is generally better practice asendl
causes the program to flush writes to the filesystem. Frequent flushing can cause performance degradation.endl
is only recommended when the output needs to be seen immediately e.g., after info or debug messages.I can confirm that the modified program produces identical results for Shuyi's pipeline.
I unfortunately couldn't reproduce the error messages ITS had initially brought up, so I can't 100% confirm that removing the
endl
's resolves this.But hopefully this fixes things!