Skip to content

Commit

Permalink
Merge pull request #2149 from joto/sync-earlier
Browse files Browse the repository at this point in the history
Sync output earlier for better objects/s numbers
  • Loading branch information
lonvia authored Mar 28, 2024
2 parents 37e12e0 + 6167112 commit 066feec
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 066feec

Please sign in to comment.