Re: [Qemu-devel] [PATCH v11 13/15] qapi: Don't box branches of flat unions

2016-02-18 Thread Markus Armbruster
Eric Blake writes: > There's no reason to do two malloc's for a flat union; let's just > inline the branch struct directly into the C union branch of the > flat union. > > Surprisingly, fewer clients were actually using explicit references > to the branch types in comparison to the number of flat

[Qemu-devel] [PATCH v11 13/15] qapi: Don't box branches of flat unions

2016-02-17 Thread Eric Blake
There's no reason to do two malloc's for a flat union; let's just inline the branch struct directly into the C union branch of the flat union. Surprisingly, fewer clients were actually using explicit references to the branch types in comparison to the number of flat unions thus modified. This let