]> git.sur5r.net Git - openldap/commit
Some tweaks to cut down on IDL stack usage. idl_intersection and idl_union
authorHoward Chu <hyc@openldap.org>
Mon, 26 Nov 2001 19:32:39 +0000 (19:32 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Nov 2001 19:32:39 +0000 (19:32 +0000)
commit763faf21b1dc6d87aadecf477ccf7165e35642e3
tree5271dffa3f66e843bf63d0e00c65a73825a078be
parentdf28982b43bc3287d18eae106e69f2ad585cea7e
Some tweaks to cut down on IDL stack usage. idl_intersection and idl_union
now take only two arguments instead of 3, overwriting the result onto the
first argument. (glibc2.0.7 defaults to a 2MB stack per thread; 3 IDLs at
1.5MB plus various other runtime overhead is enough to trash the stack.)
Also pass in a tmp IDL from search_candidates instead of allocating it in
each candiate function.
servers/slapd/back-bdb/filterindex.c
servers/slapd/back-bdb/idl.c
servers/slapd/back-bdb/proto-bdb.h
servers/slapd/back-bdb/search.c