summaryrefslogtreecommitdiffstats
path: root/include/ntqcache.h
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2024-03-11 13:47:16 +0300
committerAlexander Golubev <[email protected]>2024-03-16 02:45:44 +0300
commit3eb9061b6344a1de8973fc14085618b0c46909ae (patch)
tree1ffd17fa89c50dd1fc338bd1f8af0d2f4dac6294 /include/ntqcache.h
parentb930cec6013b9609c4345268171763c2c5936ae4 (diff)
downloadtqt3-3eb9061b6344a1de8973fc14085618b0c46909ae.tar.gz
tqt3-3eb9061b6344a1de8973fc14085618b0c46909ae.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 'include/ntqcache.h')
0 files changed, 0 insertions, 0 deletions