[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: structure packing, alignment, etc.



My inclination is towards maintainability over space. Others may
disagree of course.

-- Luke

>From: Howard Chu <hyc@symas.com>
>Subject: structure packing, alignment, etc.
>To: OpenLDAP Devel <openldap-devel@OpenLDAP.org>
>Date: Fri, 05 May 2006 00:28:31 -0700
>
>Anyone giving any thought to structure alignment issues in slap.h? Many 
>of the structs will have a fair amount of wasted space on a machine with 
>64 bit pointers but 32 bit ints. Likewise for stack usage with local 
>variables in most of the code. On past projects I've used rules like 
>"always declare variables in size order, largest first" but here we seem 
>to have things clustered by purpose.
>
>-- 
>  -- Howard Chu
>  Chief Architect, Symas Corp.  http://www.symas.com
>  Director, Highland Sun        http://highlandsun.com/hyc
>  OpenLDAP Core Team            http://www.openldap.org/project/
>

--