[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Dict parsing question
From:       Simon McVittie <smcv () collabora ! com>
Date:       2024-01-02 11:13:17
Message-ID: ZZPvzYfkTpdPrxvd () horizon
[Download RAW message or body]

On Sat, 16 Dec 2023 at 10:03:26 +1300, Lawrence D'Oliveiro wrote:
> It seems to me that having aligned fields within wire protocols is just
> a recipe for adding to the confusion. Is there really a measurable
> performance improvement from keeping things aligned?

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.)

    smcv
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic