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

structure packing, alignment, etc.

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/