Diffusion Elisa 712a3e4183ad

Optimize files indexing by doing more stuff in pure c++ instead of mixing c++…

Authored by mgallien on Jan 27 2018, 5:58 PM.

Description

Optimize files indexing by doing more stuff in pure c++ instead of mixing c++ and qml in inefficient ways

Summary:
when a file indexer has finished use its imported tracks count for notifications

start to tune initial music discovery to be faster to show something to the user

small optimisations in the music models to tune for performance

optimize music discovery by moving MusicListenersManager and the models to c++

we are now creating MusicListenersManager and the models in pure c++
including the connections of signal/slots to update the models

this feels much faster than when this was done in qml

tune the busy indicator to only show up when really needed

Test Plan: works faster, still one thing to check

Reviewers: Elisa, astippich

Reviewed By: Elisa, astippich

Subscribers: astippich

Tags: Elisa

Maniphest Tasks: T7764

Differential Revision: https://phabricator.kde.org/D9932