[PATCH 4/7] dix: Repack ClientRec

Keith Packard keithp at keithp.com
Sat Sep 22 00:07:56 PDT 2012


Adam Jackson <ajax at redhat.com> writes:

> Pick smaller types where possible, including bitfielding some Bools and
> small enums, then shuffle the result to be hole-free.  192 -> 128 bytes
> on LP64, 144 -> 96 bytes on ILP32.

One thing that would make this easier to check for 'optimal' packing
would be to simply start with the largest sized objects and work down to
the smallest ones. Otherwise, I'm sitting here counting bits. Or would
that be less efficient at run time?

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120922/74da8269/attachment.pgp>


More information about the xorg-devel mailing list