summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2018-01-12 12:19:20 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2018-01-16 08:20:22 +0000
commit99b89d30fa5484c5d1f3cbda828648c28af4fb7d (patch)
treed5c17800ba3f54f471cae0eb6eca44db21102604 /src/gui
parentcb714248a87ddbdb080c11176d7c7693c0a979db (diff)
Prevent O(n^2) behavior when calling QObject::deleteLater
When a deleteLater event is queued, a check if done if the same event for the same receiver is queued before by scanning all pending events. This leads to quadratic behavior, which is quite noticeable. By using an unused bit in QObjectData, this can be prevented. Now the duplicate event scanning in QCoreApplication is only done for the quit event. Task-number: QTBUG-65712 Change-Id: Ie505acbbec802f91ebd0b94ac067e362c2476113 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions