Skip to content

Commit

Permalink
Sync output earlier for better objects/s numbers
Browse files Browse the repository at this point in the history
Sync in after_relations() instead of in stop(). This makes the numbers
of objects per second processed a bit more accurate.
  • Loading branch information
joto committed Mar 27, 2024
1 parent 13af586 commit 6167112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osmdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ void osmdata_t::after_relations()
if (m_append) {
m_dependency_manager->after_relations();
}

m_output->sync();
}

void osmdata_t::start() const
Expand Down Expand Up @@ -406,8 +408,6 @@ void osmdata_t::postprocess_database() const

void osmdata_t::stop() const
{
m_output->sync();

if (m_append && m_with_forward_dependencies) {
process_dependents();
}
Expand Down

0 comments on commit 6167112

Please sign in to comment.