<p></p>
<blockquote>
<p>Planet generation: will create incompatible pbf or fail.</p>
</blockquote>
<p>The length of a serialized object is coded as a variable length integer:<br>
<em>"Protocol Buffers use a variable-bit encoding for integers. An integer is encoded at 7 bits per byte, where the high bit indicates whether or not the next byte is to be read.…"</em><br>
<a href="https://wiki.openstreetmap.org/wiki/PBF_Format#Low_level_encoding" rel="nofollow">Source</a></p>
<p>So the size of a key or a value is "unlimited" in practice.</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/openstreetmap-website/issues/2025#issuecomment-663863238">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLPY5XOBCK2WI52HSZTR5LVTDANCNFSM4F3G7XSA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLO66ZM56EVRMWL6YH3R5LVTDA5CNFSM4F3G7XSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE6I37RQ.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/openstreetmap-website/issues/2025#issuecomment-663863238",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2025#issuecomment-663863238",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>