Skip to content
Commit 24194b51 authored by Milian Wolff's avatar Milian Wolff
Browse files

Restructure code to minimize temporary allocations.

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.

REVIEW: 121407
parent 4be083ac
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment