directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <elecha...@gmail.com>
Subject Re: Value handling ideas
Date Tue, 13 Oct 2015 07:55:00 GMT
Le 13/10/15 07:29, Kiran Ayyagari a écrit :
> On Tue, Oct 13, 2015 at 2:50 AM, Emmanuel Lécharny <elecharny@gmail.com>
> wrote:
>
>> Thoughts about value handling in the API and Server
>> ---------------------------------------------------
>>
>> <snip>
>> Another idea would be to simply hide the byte[] unless we need to
>> convert them to a String, which can be done when needed. We need to
>> convert the values when we do a normalize (this happens when we want to
>> compare the value to another one), or a compare. We also need to run
>> every value through the PrepareString methods (and PrepSASL for the
>> userPassword) before saving them to the disk.
>>
>> but AFAIU this conversion happens multiple times if not stored, so I still
> prefer converting once and use the stored value later onwards

Actually, once converted, we should keep a copy of the converted value,
to avoid any further conversion.


Mime
View raw message