Floating-point and mixed-endianness in D-Bus (was: dbus mini-summit)

Thiago Macieira thiago at kde.org
Mon Aug 8 15:54:04 PDT 2011


On Monday, 8 de August de 2011 19:21:51 Rémi Denis-Courmont wrote:
> I understand the motivation to use the native endianess if possible. But in 
> practice, I think it would be faster to just use a fixed endianess and
> convert on the fly in the D-Bus implementations. In practice, systematic
> (selected at build-time) conversion is probably faster than conditional
> (selected at run- time), if only because a byte swap is faster than a
> conditional branch. It's also simpler at the source code level.
> 
> An alternative is to give-up on D-Bus over the network.

There are some CPU families that can run different endianness on the same chip, 
with the same kernel. ARM and IA-64 are examples of that.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110809/90639842/attachment.pgp>


More information about the dbus mailing list