Now let me also add per-phase timing as requested. Let me find the main processing loop.


Grep

Pass 1:|Pass 2:|Pass 3:|Assembling admin|S2 cell|Deduplicating|Writing index


980:    // Submit S2 cell coverage to thread pool (runs concurrently with PBF reading)
1155:        // Defer S2 cell computation to parallel phase
1186:        // Defer S2 cell computation to parallel phase
2001:        std::cerr << "  --street-level N       S2 cell level for streets (default: 17)" << std::endl;
2002:        std::cerr << "  --admin-level N        S2 cell level for admin (default: 10)" << std::endl;
2141:            // --- Pass 1: collect relation members for multipolygon assembly ---
2142:            std::cerr << "  Pass 1: scanning relations..." << std::endl;
2166:            // --- Pass 2: nodes (streaming parallel block processing) ---
2167:            std::cerr << "  Pass 2: processing nodes in parallel..." << std::endl;
2278:            // --- Pass 3: ways + relations (parallel way processing) ---
2290:            std::cerr << "  Pass 3: processing ways and areas with " << num_threads
2306:                    std::vector<std::pair<double, double>> building_addr_coords; // lat,lng for S2 cell
2429:                                                // Store coords for later S2 cell computation
2706:                    std::cerr << "  Assembling admin polygons in parallel ("
2868:        // --- Parallel S2 cell computation for ways and interpolation ---

[Showing results with pagination = limit: 15, offset: 0]


Let me add timing around the key phases. I'll use `std::chrono`.


No matches found

[Showing results with pagination = limit: 5, offset: 0]


1:#include <algorithm>
2:#include <atomic>
3:#include <cmath>
4:#include <condition_variable>
5:#include <cstdint>

[Showing results with pagination = limit: 5, offset: 0]


No matches found