[Date Prev][Date Next]
AttributeDescriptions, OpenLDAP 2.5
- To: OpenLDAPemail@example.com
- Subject: AttributeDescriptions, OpenLDAP 2.5
- From: Howard Chu <firstname.lastname@example.org>
- Date: Thu, 10 Mar 2011 05:37:52 -0800
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11pre) Gecko/20110130 Firefox/4.0b11pre SeaMonkey/2.1b2pre
I plan to replace all AttributeDescription pointer references with array
references instead. It makes back-mdb a lot more portable, and it also saves
us 4 bytes for every attribute on 64 bit machines.
At a microscopic level it imposes some extra overhead on each reference
(instead of a direct pointer deref, you have to do pointer+offset arithmetic)
but on modern CPUs simple address offsets like this come for free anyway.
A change of this nature will necessarily touch the majority of slapd code as
well as 3rd party overlays. Making this switch will mean that patches for RE24
will almost always be incompatible with patches for HEAD/RE25.
Very likely the same change should be made for the rest of the common data
types in slapd. (E.g., ObjectClasses, AttributeTypes, Syntaxes, etc.) But
since AttributeDescriptions are used in every Entry these will have the most
impact on slapd's memory footprint, the others are inconsequential.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/