We might want to add a counter to GenericOutputStream to indicate if any messages have been logged since the last flush() and only call flush() when there are messages. Flushing w/ no messages might be expensive since it might need to open and append (nothing) to a file.
See:
https://github.com/LLNL/axom/blob/25744e566c650e8ce53c35f466672623eab1e917/src/axom/slic/streams/GenericOutputStream.cpp#L127-L138
Originally posted by @kennyweiss in #1649 (comment)
We might want to add a counter to
GenericOutputStreamto indicate if any messages have been logged since the lastflush()and only callflush()when there are messages. Flushing w/ no messages might be expensive since it might need to open and append (nothing) to a file.See:
https://github.com/LLNL/axom/blob/25744e566c650e8ce53c35f466672623eab1e917/src/axom/slic/streams/GenericOutputStream.cpp#L127-L138
Originally posted by @kennyweiss in #1649 (comment)