Re: Signal emission far to slow

On Sun, 27 May 2001, Alex Larsson wrote:

> Following up to myself here. After an irc discussion with jamesh I added
> to the test an extra signal much like the "string" one, but this one had
> the argument using G_SIGNAL_TYPE_STATIC_SCOPE, and boy does this make a
> difference:
> Testing signal emissions with ten null handlers
> ===============================================
> 100000 nop emits by id in 2483 milliseconds
> 100000 integer emits by id in 3423 milliseconds
> 100000 string emits by id in 4152 milliseconds
> 100000 sstring emits by id in 1313 milliseconds

Notice that the static string case is three times faster than the integer
one. How can this be? Integer GValues should be very fast.

/ Alex

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