UI freeze for a few seconds after directory change on startup
This is a performance issue introduced in 7edfc506. The few seconds in the tile occur without SSD and on older hardware, so it's probably less noticeable with newer hardware.
To reproduce:
- Clear disk cache:
echo 1 | sudo tee /proc/sys/vm/drop_caches
- Open Thunar
- As soon as the view displays something, change directory
- Try to focus a file in the newly opened directory
Before the above commit, the file is immediately focused. After this commit, it only receives focus after a few seconds.
In practice, this happens from time to time, probably when the data being explored is no longer cached. But most of the time, I notice it by reproducing the steps above (open Thunar in $HOME, go to Downloads to open a video or a sub-folder...).