Bug: Import Images is sluggish #2
Labels
No labels
bug
critical
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
arianagiroux/renderbuddy#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
v0.1.0-alpha3introduced 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 theDirectoryTreewidget. I'm not sure if it just makes more sense to implement our own version that only shows directories as options in an option listAs of
3ff17ea, importing has been disabled in 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.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 from9d1e08eeb0would be much more efficient and speed up the TUI rendering.