diff options
author | Alexander Golubev <[email protected]> | 2024-03-11 13:47:16 +0300 |
---|---|---|
committer | Alexander Golubev <[email protected]> | 2024-03-11 18:41:57 +0300 |
commit | 5a662b671d7e3a891df7dfb17556d309e77e327b (patch) | |
tree | 1d153658ff97435c5b350afcfa5884290ba0fb85 /examples | |
parent | d8738f551be832cd69b8b382a550819d9b747ad7 (diff) | |
download | tqt3-5a662b671d7e3a891df7dfb17556d309e77e327b.tar.gz tqt3-5a662b671d7e3a891df7dfb17556d309e77e327b.zip |
Deduplicate code in TQObject::activate_signal()
According to a benchmark the while() loop with direct use of iterators
were ~10% slower than the current one which handled case when there is
only one connection to a signal separately.
But use of a range-based for loop sped up even this case for ~1.5%.
Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tqt3/issues/121
Signed-off-by: Alexander Golubev <[email protected]>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions