From 616711217e2d923368b31c8905fd2a2fa61aae74 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Tue, 22 Aug 2023 16:26:53 +0200 Subject: [PATCH] Sync output earlier for better objects/s numbers Sync in after_relations() instead of in stop(). This makes the numbers of objects per second processed a bit more accurate. --- src/osmdata.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osmdata.cpp b/src/osmdata.cpp index 0779a6c8b..f2a20af2c 100644 --- a/src/osmdata.cpp +++ b/src/osmdata.cpp @@ -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 @@ -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(); }