Bug 233196

Summary: Long delay with large amount of tracks in OrganizeFilesDialog after each character in the pattern changed
Product: [Applications] amarok Reporter: Kuba Serafinowski <kuba.serafinowski>
Component: Collections/LocalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: matej, ralf-engels, samuel.brack, unnamedrambler
Priority: NOR    
Version: 2.4-GIT   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 2.4.2

Description Kuba Serafinowski 2010-04-03 21:18:57 UTC
Version:           2.3-GIT (using KDE 4.4.2)
OS:                Linux
Installed from:    openSUSE RPMs

When you change pattern in the dialog it stalls for a few seconds (about 6s for 3k tracks), on every character change.

I guess simple, yet great improvement fix/workaround would be to make it to wait 1 or more seconds to regenerate preview, instead of doing this real time. This way we could make a few changes at once, and that would be actually bearable ;-)
Comment 1 Samuel Brack 2010-12-08 13:39:11 UTC
Confirmed in 2.4-GIT, it's still very slow.
Comment 2 Bart Cerneels 2011-07-11 11:28:48 UTC
Git commit f824e2b5f95b558bd29394b6cc0f1f2367a4de84 by Bart Cerneels.
Committed on 09/07/2011 at 00:11.
Pushed by shanachie into branch 'master'.

Don't block the organizer dialog.

Process in batches instead.

BUG:233196

M  +90   -88   src/dialogs/OrganizeCollectionDialog.cpp     
M  +7    -1    src/dialogs/OrganizeCollectionDialog.h     
M  +47   -2    src/dialogs/TrackOrganizer.cpp     
M  +11   -5    src/dialogs/TrackOrganizer.h     

http://commits.kde.org/amarok/f824e2b5f95b558bd29394b6cc0f1f2367a4de84