Skip to content

Counter in Generic Stream #1658

@gberg617

Description

@gberg617

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:

void GenericOutputStream::outputLocal()
{
openBeforeFlush();
m_stream->flush();
}
//------------------------------------------------------------------------------
void GenericOutputStream::flush()
{
openBeforeFlush();
m_stream->flush();
}

Originally posted by @kennyweiss in #1649 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    PerformanceIssues related to code performanceSlicIssues related to Axom's 'slic' component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions