3 ms·
The claimed 16 times speeddown apparently is caused by a call to sender(); if the object reference is just passed to onValueChangedSignal instead of calling sen
by Rochus 4y ago
The claimed 16 times speeddown apparently is caused by a call to sender(); if the object reference is just passed to onValueChangedSignal instead of calling sender() there is likely no speeddown at all.
- saidinesh5 4y agoThe 16 times slow down is when they added call to sender(); But before that their benchmark was for regular signal vs. observer pattern no? ``` void onValueChanged() override { ++m_count; } void onValueChangedSignal() { ++m_count; } ``` QT signal: 00:00:01.841 Virtual function: 00:00:00.179