GNOME Bugzilla – Bug 363066
Keep smart playlists from slamming the CPU/freezing banshee
Last modified: 2006-11-04 17:27:25 UTC
With 0.11.1, every track's Changed event will trigger a complete recheck of every smart playlist. I'm writing an import pluggin that modifies many tracks in a row. The performance hit of re-evaluating all smart playlists after each change makes the plugin virtually unusable. I think there should be a way to disable "live updating" of smart playlists. I've written a patch, but I'm not confident of its robustness - I'm something of a newbie. Pointers?
Created attachment 74920 [details] [review] Implements a LiveUpdating bool to control live updating
Created attachment 75147 [details] [review] Tabs -> Spaces Changed tabs to 4 spaces.
Instead of having a property in the Smart Playlists to turn off automatic updating, I've committed a patch that adds in rate limiting, based on the number of events coming in and how much time the updates they are causing take. Please let me know if this fixes your problem - it should. Thanks for the patch, the effort is appreciated. This was actually a lot more serious problem - it actually made importing very very slow depending on certain circumstances.
Works like a charm. Thanks!