Minimode provokes an huge lag when putting a lot of tracks in a playlist

Bug #437548 reported by Steve Dodier-Lazaro
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
High
Mathias Brodala

Bug Description

If I add my whole library to a playlist, the tracks_added event will be fired ~ 2000 times. And the minimode will use 2 of its functions ~2000 times too, causing a major slowdown. This happens even when the minimode is not active (ie. the main GUI is in use), and when the minimode has been disabled but exaile hasn't been restarted yet.

In a general maneer, I suspect that every bit of code listening to tracks_added will cause major slowdowns. How is tracks_added used right now ? Wouldn't it be better to send it once with a list of new tracks instead of once per track with one track each time ? Especially considering that tracks will be as compact as a loc string in the 0.3.1 branch.

reacocard (reacocard)
Changed in exaile:
status: New → Confirmed
milestone: none → 0.3.1
Revision history for this message
Gene Snider (snider6982) wrote :

Also, on my Toshiba laptop, Exaile freezes for 3ish seconds when switching to the Entire Library tab with 1746 entries.

Gene

Revision history for this message
Mathias Brodala (mathbr) wrote :

Should be partly fixed in trunk with r2657. The track selector won't be getting the same update as the playlist button since the way it displays track titles is completely different.

Changed in exaile:
status: Confirmed → Fix Committed
reacocard (reacocard)
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.