xserver: Branch 'master'
Daniel Stone
daniel at fooishbar.org
Fri Mar 14 12:52:37 PDT 2008
On Fri, Mar 14, 2008 at 03:43:36PM -0300, Paulo Cesar Pereira de Andrade wrote:
> But the real solution would be to write proper code possibly
> analyzing the usages, so that where the buffer size is not known have
> a malloc/free fallback, allocating data in the stack isn't something
> bad and if done in some inner loop, it can be a major performance
> killer. One could just "preallocate" something like 1024 bytes in
> the stack, and do it in a 100% portable way, i.e. if requiring more
> than those 1024 byte, allocate memory...
Hi,
Show me a case where this is expensive, and I'll gladly fix it (as the
person who nuked {,DE}ALLOCATE_LOCAL after the nth security bug from
same).
Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080314/8d4917f1/attachment.pgp>
More information about the xorg
mailing list