path: root/src/gui
diff options
authorErik Verbruggen <>2018-01-12 12:19:20 +0100
committerSimon Hausmann <>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 <> Reviewed-by: Simon Hausmann <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions