OSDN Git Service

mime type matching optimization
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 9 Mar 2011 10:40:10 +0000 (11:40 +0100)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 9 Mar 2011 21:24:13 +0000 (22:24 +0100)
commit93195356a90f300ab0e2d9a8b76fe7130fe5f256
treeeb4a1d7e5a2bd7e135f84f3e45703ce458e9b573
parentf3d6cd9cd1dce9ce893ce3f58fbf997f30556ce7
mime type matching optimization

given that checking for a match is expensive and determining the
priority is cheap, it makes sense to match only if the priority is known
to be high enough.

Reviewed-by: Leandro Melo
src/plugins/coreplugin/mimedatabase.cpp