On 03/11/2016 11:54 PM, Emmanuel Lécharny wrote:
> We could question the rational behind the normalization being done
> preemptively when we receive the data. All in all, we will return
> entries as they were injected, without normalization, and most of the
> Entry's values will never need to be compared, thus won't need
> normalization.
> 
> As I said, normalization is mainly needed for comparisons. So why do we
> normalize *all* the values ?
> 
> This is a choice made early in the Server's design. For the values that
> are going to be compared, we whave three options :
> -1- normalize when we initially receive the data
> -2- normalize the value only when we need to compare it
> -3- normalize the value when we first need it, and keep the normalized
> value in memory, to avoid following normalizations.
> 
> All in all, this is a balance, and we decided a long time ago that
> having the normalized available at all time was way simpler, and
> potentially more efficient.

I think it is good as it is, I don't see that we need to change it.
Especially let's avoid option 3 which would introduce even more complexity.

Reply via email to