Re: Signal emission far to slow



On Sun, 27 May 2001, Alex Larsson wrote:

> Embarassing. I forgot to connect to the sstring signal, that's why it was
> so fast, if i connect to it i get slightly slower speeds, but the points i
> made before are still valid:

He said merrily, and then continued to connect to the sstring signal
*once*, and not ten times. Double embarrasing. Anyway, if done correctly
STATIC_SCOPES makes the string case approximately the same speed as the
int one, as it should.

Testing signal emissions with no installed handlers
===================================================
100000 nop emits by name in 1540 milliseconds
100000 integer emits by name in 1814 milliseconds
100000 string emits by name in 1905 milliseconds
100000 nop emits by id in 1020 milliseconds
100000 integer emits by id in 1258 milliseconds
100000 string emits by id in 1762 milliseconds
100000 sstring emits by id in 1288 milliseconds

Testing signal emissions with one null handler
==============================================
100000 nop emits by name in 1775 milliseconds
100000 integer emits by name in 2140 milliseconds
100000 string emits by name in 2247 milliseconds
100000 nop emits by id in 1270 milliseconds
100000 integer emits by id in 1626 milliseconds
100000 string emits by id in 2317 milliseconds
100000 sstring emits by id in 1663 milliseconds

Testing signal emissions with ten null handlers
===============================================
100000 nop emits by name in 3037 milliseconds
100000 integer emits by name in 4000 milliseconds
100000 string emits by name in 4149 milliseconds
100000 nop emits by id in 2512 milliseconds
100000 integer emits by id in 3478 milliseconds
100000 string emits by id in 4205 milliseconds
100000 sstring emits by id in 3583 milliseconds

/Alex






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]