Skip to content

Long delay when refreshing large directories outside of user's home dir

Version information

Thunar V4.21.3 + MR !722 (merged)

Ubuntu 24.04.3 with Xfce 4.18

Steps to reproduce

  1. ...Create a directory with 35,000 subdirs: mkdir testdir; cd testdir; seq 1 35000 | xargs mkdir
  2. ...Launch thunar and navigate to testdir.
  3. ...Once it has rendered (takes approx 2 seconds), press Ctrl+R (reload).

Current behavior

With tree side-pane, this takes 35 seconds, and dbus-monitor shows 70,000 (i.e. 2 x 35,000) message call/responses of GetTreeFromDevice between thunar and gvfsd-metadata

With shortcuts side-pane, or no side pane at all, this takes 50 seconds, and dbus-monitor shows 105,000 (i.e. 3 x 35,000) message call/responses of GetTreeFromDevice between thunar and gvfsd-metadata (Temporarily removing all bookmarks makes no difference)

Same in list, compact, icon views.

Expected outcome

Something a bit quicker...

Backtrace

Additional information

Interesting that the initial render of the 35,000 subdirs does not generate loads of GetTreeFromDevice call/responses.

Edited by simonpmind