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

Re: Filter string representation (Was: commit: ldap/servers/slapd syncrepl.c)

At 08:12 AM 12/15/2005, Pierangelo Masarati wrote:
>> Log Message:
>> fix filter generation (back-ldap uses string form)
>On a related note, we keep converting filters from the exploded to the
>string form.  Most of the backends, and the frontend, only need it in
>exploded form; the string form is only used for logging and by the proxy

The string form was originally only constructed for
logging purposes.  I would be fine with changes where we
only constructed the string form when logging.


>What about providing the filter in one form only, generating
>the other only if and when required, and destroying both at the end?  In
>this case, a bdb database with logging off would save a few cycles; on the
>converse, internal ops could be only written in string form, which is
>developer friendly, and if the op is handled by a proxy there would be
>(almost) no need to explode it.  I'm not going to change this now, because
>savings would likely be very limited, but in case...
>Pierangelo Masarati
>Ing. Pierangelo Masarati
>Responsabile Open Solution
>SysNet s.n.c.
>Via Dossi, 8 - 27100 Pavia - ITALIA
>Office:   +39.02.23998309          
>Mobile:   +39.333.4963172
>Email:    pierangelo.masarati@sys-net.it