Skip to content

Commit 33a5c86

Browse files
committed
add a comment why the sequential processing
1 parent 814b0a8 commit 33a5c86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/osmdata.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ class multithreaded_processor
301301
util::timer_t timer;
302302

303303
if (ids_queued < 100) {
304+
// Worker startup is quite expensive. Run the processing directly
305+
// when only few items need to be processed.
304306
log_info("Going over {} pending {}s"_format(ids_queued, type));
305307

306308
for (auto const oid : list) {

0 commit comments

Comments
 (0)