cardinot/mixxx — pull request #19 by kain88-de (2014-09-29 11:39:03+00:00)
Title: save default cover position

The reason why jus is seeing a hugh spike in CPU load is because we constantly look for the track cover even if we can't find it. We never save that we already have seen the track and marked it with 'defaultCover'.

This patch already partially fixes it. On the first run the coverdelegate is showing the default-cover for tracks where we couldn't find a cover. This does not happen on the second run. This is because we don't do a database save until we shutdown mixxx or scanned 500 tracks. My sample library has ~30 tracks.

My current quickfix for that is to check if the images are equal. But that means converting the pixmaps everytime and doing what ever algorithms Qt uses to check of the images are equal.