Le 13/10/15 07:29, Kiran Ayyagari a écrit : > On Tue, Oct 13, 2015 at 2:50 AM, Emmanuel Lécharny <[email protected]> > 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.
