Написал чуваку, как бы я это переписал. (Там всё в одном цикле можно сделать, плюс не надо будет UpdateWith
вызывать.)
Ответ, как говорится, убил:
> yeah, I know little about whether the algorithm is right or not (I should need to have a deeper look at what it really does), but the thing about _constantly_ checking old values doesn't make much sense... when I have some free time, I'll check it and see if there are some safe refactors to understand better the code and then improve it
> but that amount of time is very big for just a pre-step of the whole process