Asset Library: Performance slow when loading many subfolders

When the Asset Library is trying to show a folder with a larger (20+) number of subfolders, it’s getting quite slow to the point of locking up the browser tab, displaying the “Tab may have locked / script lockup” browser warning.

See: https://imgur.com/a/1MkEgXh

Note that this is on a very high end machine with a fiber connection. I assume this is due to how files are stored in the asset lib or rather how folders work, but maybe there is something that can be done to optimize this, as it gets really painful moving through a few larger folders.

Yeah, that’s actually due to the UI trying to calculate how many items there are in each of the subfolders, and it’s all synchronous operations (i.e it doesn’t yield until it’s done, so it locks up the page). I remember trying to solve this by making it asynchronously do the calculation but wasn’t able to. It’s still something that needs to be fixed to improve that loading speed there.

1 Like

To be honest, I’d be happy to give up the label showing how many items there are in each folder if it would fix the loading issue :stuck_out_tongue: I imagine others feel differently however. Maybe as an setting, or only if there are >10 subfolders… I don’t know.

Maybe it could help to store/cache how many items there are in each folder after calculating once and only update it when the folder is changed.

1 Like