Bug: Import Images is sluggish #2

Open
opened 2026-11-24 02:52:59 -06:00 by arianagiroux · 3 comments
Owner

v0.1.0-alpha3 introduced an importing action. Unfortunately, while this function works well in tests, it breaks down when implemented in the wild. I believe it has something to do with the fact that it runs massive os calls synchronously instead of in a (threaded) worker. This seems like a core flaw in the DirectoryTree widget. I'm not sure if it just makes more sense to implement our own version that only shows directories as options in an option list

`v0.1.0-alpha3` introduced an importing action. Unfortunately, while this function works well in tests, it breaks down when implemented in the wild. I believe it has something to do with the fact that it runs massive os calls synchronously instead of in a (threaded) worker. This seems like a core flaw in the `DirectoryTree` widget. I'm not sure if it just makes more sense to implement our own version that only shows directories as options in an option list
arianagiroux added this to the (deleted) project 2026-11-24 02:52:59 -06:00
Author
Owner

As of 3ff17ea, importing has been disabled in the TUI.

As of `3ff17ea`, importing has been disabled in the TUI.
arianagiroux added reference refs/tags/v0.1.0-alpha3 2026-11-24 23:02:34 -06:00
Author
Owner

It appears that the performance lag was being caused by the repeated and unnecessary calls to exiftool (see also #1). I've patched the import UI back into the TUI.

It appears that the performance lag was being caused by the repeated and unnecessary calls to `exiftool` (see also #1). I've patched the import UI back into the TUI.
Author
Owner

The import action in the TUI lags for a moment due to a synchronous call to renderbuddy._io.get_metdata. This call is only made so as to get a filtered list of image files to import. This is the same methodology that caused #1, and the same fix (namely the one from 9d1e08eeb0 would be much more efficient and speed up the TUI rendering.

The import action in the TUI lags for a moment due to a synchronous call to `renderbuddy._io.get_metdata`. This call is only made so as to get a filtered list of image files to import. This is the same methodology that caused #1, and the same fix (namely the one from `9d1e08eeb0` would be much more efficient and speed up the TUI rendering.
arianagiroux removed reference refs/tags/v0.1.0-alpha3 2026-11-26 02:41:43 -06:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
arianagiroux/renderbuddy#2
No description provided.