[Development] Reducing number of allocations in metacall argument marshalling

Thiago Macieira thiago.macieira at intel.com
Wed Jan 15 20:11:51 CET 2014


On quarta-feira, 15 de janeiro de 2014 13:42:01, Kuba Ober wrote:
> The metatype system stores the size of types known to it, so it’s a simple
> matter to know how big the all-in-one array needs to be, taking alignment
> into consideration, of course.
> 
> I don’t know yet if such a change would be binary compatible, that needs
> further checking of course. Initially it looks as if it would be
> compatible, since the QMetaCallEvent class is internal only, just as
> queued_activate is etc.
> 
> I would like to know if such a change would be considered useful. The
> potential for underlying allocator global lock contention is much smaller,
> besides not paying the uncontested lock allocation costs, and simply using
> a bit less memory for every metacall event.

It's probably binary compatible and would be welcome.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140115/609f0ca8/attachment.sig>


More information about the Development mailing list