diff options
author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2016-04-05 16:44:51 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2016-05-03 08:53:53 +0000 |
commit | 2410be7f45b8688c9910336ec9b8a79d3232b9c7 (patch) | |
tree | 88a875ff49c3660b6caf7c8e0a8acd9ce7718012 /src/corelib/kernel/qsocketnotifier.cpp | |
parent | 16f3c6e4a1397926e088a0ae6e81d62e781afc9a (diff) |
Tune fast-exit for signal activation for QML.
When using QML, it quite often happens that only the QML engine is
connected to a signal, and no C++ handlers. By splitting up the
fast-exit case and handling QML separately, we can prevent a call to
QThread::currentThreadId, and locking+unlocking the mutex.
On x86 this saves ~130 instructions according to valgrind.
Change-Id: I947fe42afe351922339ac982a6d498bc2f7b5192
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/kernel/qsocketnotifier.cpp')
0 files changed, 0 insertions, 0 deletions