Re: Dict parsing question
Thiago Macieira <[email protected]> Tue, 02 Jan 2024 09:09:56 -0300
| Newsgroups | gmane.comp.freedesktop.dbus |
|---|---|
| Message-ID | <3103775.U3zVgo479M@tjmaciei-mobl5> |
On Tuesday, 2 January 2024 08:13:17 -03 Simon McVittie wrote: > If it was 20 years ago and we were designing D-Bus as a new protocol, this > would be a valid question to be asking, and I don't know what the answer > would be. In 2024, the answer is that it no longer matters whether this > is a useful optimization or not, because D-Bus' most important feature > is interoperability with D-Bus, and the spec says fields are aligned in > a particular way, therefore they're aligned in that way. > > (I didn't design the wire protocol, I just inherited it.) It was also before my time. But I don't think this quirk was intentional. I think it was a side-effect of the reference implementation that wasn't properly understood at the time and therefore was baked in to the specification.