recursive types, struct, custom, dict, etc.

Olivier Andrieu oliv__a at
Fri Jun 4 13:51:39 PDT 2004

 Havoc Pennington [Fri, 04 Jun 2004]:
 > On Thu, 2004-06-03 at 21:54, Olivier Andrieu wrote:
 > > I don't see where the optimisation would be, compared to what we have
 > > now. Right now, the signature is built as a message is validated,
 > > correct ? Is this step of signature building really slow ?
 > The important optimization with type signatures is for arrays, i.e.
 > array of int should be:
 >   typecode ARRAY, typecode INT, LENGTH, VALUE, VALUE, VALUE

But this is what is done already ! As for structs, I don't see the
benefit in doing

   typecode STRUCT, typecode INT, typecode FLOAT, LENGTH, VALUE, VALUE

instead of

   typecode STRUCT, LENGTH, typecode INT, VALUE, typecode FLOAT, VALUE

Appending data is much easier with the second format.


More information about the dbus mailing list