diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-11-25 13:13:37 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-11-26 21:40:03 +0100 |
commit | e8ef871e3522f340b4efe32382af7e35ef908665 (patch) | |
tree | eb119447644c0e98b6328328107eccd7da07c90f /examples/widgets/doc/src/tablet.qdoc | |
parent | c63901c5f3195596eb81e5f5ae5483ca5a0b6d35 (diff) |
Simplify the safeguarding logic in notify()
The logic in notify() was doing quite a bit more work than
it needed to. By inserting a dummy node after the current one instead of
replacing it, we can avoid half of the data shuffling that has been
happening and also don't need a back pointer when executing the
notification.
Also avoid calling a semi expensive destructor of QPropertyObserver.
Reduces the overhead of notify() by ~30%.
Pick-to: dev 6.0.0
Change-Id: I7ce16bcf9cd9c4368c18bf875fc959223452fd4f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'examples/widgets/doc/src/tablet.qdoc')
0 files changed, 0 insertions, 0 deletions