Restructure code to minimize temporary allocations.

Review Request #121407 - Created Dec. 9, 2014 and submitted

Information
Milian Wolff
kdepimlibs
da61ff6...
Reviewers
kdepimlibs
dvratil, mlaurent, vkrause
In EntityMimeTypeFilterModel::filterAcceptsRow, we can check the
mimetype first, before checking whether the item has a payload.
The latter requires a temporary data allocation inside QVariant
for the Akonadi::Item, whereas the former can leverage the optimized
QVariant code for QString, which is faster.

  
Daniel Vrátil
Milian Wolff
Review request changed

Status: Closed (submitted)

Loading...