sao's way of updating the visible columns could be a huge performance issue
This is issue is a generic performance issue but it can be shown when a tree view shows a large number of different fields and when Sao.config.limit
is small.
In this case a visible delay occurs when loading the different batches of record, the delay become increasingly bigger for each batch.
This is due to the fact that we're manipulating the DOM (thus invalidating its cached properties) while reading some of its properties (all this is done through jQuery) in a loop. For more info: https://webperf.tips/tip/layout-thrashing/
The way I tackled the issue is by moving the update_visible
call from the Row
to the Tree
thus calling it only once.