New handling of privates [was: Re: xf86-video-intel 2.5 release planning]

Keith Packard keithp at keithp.com
Fri Aug 1 16:06:21 PDT 2008


On Fri, 2008-08-01 at 18:05 -0400, Eamon Walsh wrote:

> The ability to pre-allocate memory is a legacy of the old system.  Some 
> object types offered this "feature," some didn't.  I think it would be 
> great if this feature was dropped.  The callers of it would need to be 
> changed to allocate their own space.  There would have to be a 
> deprecation period so out-of-tree users could adjust.

Reducing the number of allocations needed for each object is still a
worthwhile goal; malloc is still not free. I don't see how to reconcile
that with the need to resize the privates array at runtime though, which
I have to admit is a compelling new feature.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20080801/c5d9f182/attachment.pgp>


More information about the xorg mailing list