diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-02-25 03:54:13 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-04-24 18:51:52 +0000 |
commit | bfcc2902a4f4f3d062962e3ba7bf19158d1f56d5 (patch) | |
tree | 2f05d2731a5672a67ef987bc4c31860331969c08 /src/corelib/kernel/qmetaobjectbuilder.cpp | |
parent | 93570810d8813691e4f8b7ade34b0f085c6f0b8d (diff) |
QtBase: use new QStaticByteArrayMatcher where applicable
Even for compilers that don't yet support C++14 constexpr,
this should improve performance of searches a lot, if,
indeed, Boyer-Moore still is an optimization over linear
searching at all in these days of hardware prefetchers
and deep CPU pipelines, because the setup cost is only
incurred once. As function-statics, we also don't care
about startup ordering and cost.
It's a pity that the platform that would benefit the most
- Windows - doesn't have constexpr support, yet.
Change-Id: I827df135854fd6fbd6546e248dc37ef0fbaf1792
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
Diffstat (limited to 'src/corelib/kernel/qmetaobjectbuilder.cpp')
0 files changed, 0 insertions, 0 deletions