1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

Use QHash as the order is not important

This decreases the runtime of decQidState by 10%.
This commit is contained in:
Uwe L. Korn 2015-06-11 20:07:22 +02:00
parent 3662214f68
commit 9898d6987c

View File

@ -45,9 +45,9 @@ private:
QList< Resolver* > resolvers;
QList< QPointer<Tomahawk::ExternalResolver> > scriptResolvers;
QList< ResolverFactoryFunc > resolverFactories;
QMultiMap< QID, Tomahawk::Resolver* > qidsState;
QMap< QID, query_ptr > qids;
QMap< RID, result_ptr > rids;
QMultiHash< QID, Tomahawk::Resolver* > qidsState;
QHash< QID, query_ptr > qids;
QHash< RID, result_ptr > rids;
QMutex mut; // for m_qids, m_rids