<p></p>
<p><code>osmdata_t::{node,way,relation}_add</code> only processes an object, if it has at least one tag. In case of nodes, more than 97% of all nodes don't have any tags and would be discarded right away. However, when providing the "Extra parameters" option, every single object needs to be processed.</p>
<p>Depending on the output, this much larger amount of total data to be processed could make a difference: for the Flex backend, turning on extra attributes for a completely empty style file reduces throughput by about 50%.</p>
<p>I wonder if this should be reflected in docs/flex.md. At this time, the page says:</p>
<blockquote>
<p>osm2pgsql.process_node(object): Called for each node.</p>
</blockquote>
<p>There's no mentioning of a tag filter, or the role of the extra-attributes parameter. It's role is described as turning on/off meta data. That's unrelated to the question of the object having tags or not.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/issues/189#issuecomment-633212191">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353RGJVN2FXVO2M6W4MLRTD3NVANCNFSM4AVNMJRA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353RWAGIIF3GW6XVOYKLRTD3NVA5CNFSM4AVNMJRKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEW7A2HY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/issues/189#issuecomment-633212191",
"url": "https://github.com/openstreetmap/osm2pgsql/issues/189#issuecomment-633212191",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>