qt5base-lts/tests/benchmarks/corelib
Kent Hansen d359b0af2b Call QObject::disconnectNotify() when receiver is destroyed
Store the signal index in QObjectPrivate::Connection, thereby making
it available in "implicit" disconnect contexts (i.e., receiver
deletion).

This change does not cause the size of QObjectPrivate::Connection
to grow (still 40 bytes on 32-bit Linux, 72 bytes on 64-bit Mac).

Valgrinding the new benchmark indicates that the percentage of the
time spent in the QObject destructor increased from 7.8% to 8.4%
on ia32, for that particular stress test; the increase is the
combined cost of calling metaObject(), QMetaObjectPrivate::signal(),
and disconnectNotify() for one connection. In practice, the measured
wallclock time increased by about 3ms for a 500ms run (which
repeatedly constructs, connects, and destroys an object).

Task-number: QTBUG-4844

Change-Id: I1beb01c753f31542fc0acb62edb4c6d165fcc5b4
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
2012-06-28 14:44:20 +02:00
..
codecs Fixed benchmarks to work from install directory 2012-03-19 01:18:20 +01:00
io remove some qmake -project boilerplate from project files 2012-06-19 16:39:52 +02:00
json Significantly speed up insertion into QJsonObject/Array 2012-03-22 18:59:45 +01:00
kernel Call QObject::disconnectNotify() when receiver is destroyed 2012-06-28 14:44:20 +02:00
plugin Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread Remove Symbian specific code from qtbase. 2012-01-31 07:08:31 +01:00
tools Implement QVector with QArrayData interface. 2012-05-30 17:07:27 +02:00
corelib.pro Import json support from playground/qtbinaryjson 2012-01-24 15:28:20 +01:00