diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2014-08-18 20:30:55 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2014-08-28 09:53:03 +0200 |
commit | 2e3facf41971cc699b2ab9a62ff4da7654ba9497 (patch) | |
tree | 3611482b52df5985529ad0f5f5c244045bbf72ab /src/plugins/platforms/windows/qwindowsnativeinterface.cpp | |
parent | f563124eee7e0f58359599a8108ec0fde21477f4 (diff) |
Micro-optimize QVector::count()
...by instantiating std::count() not with QVector::const_iterator, which is a
class, but with const T*, thus increasing the chance that the instantiation
can be shared with other instantiations in the executable. It might also enable
STL implementations to choose a hand-optimized version of the algorithm for C++
builtin types.
Change-Id: I93df4e58f76838d98b565f229c19e317774b7b4c
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsnativeinterface.cpp')
0 files changed, 0 insertions, 0 deletions