[Qt-interest] Calculation in Thread extremly slow

Matthias Pospiech matthias.pospiech at gmx.de
Mon Mar 30 10:16:39 CEST 2009


Srdjan Todorovic schrieb:
> Now I have moved it to a separate thread which is included as a pointer
>> in the dialog class. The result was that it takes almost a minute to do
>> the same calculation in release mode. So it is 10 to 100 times slower.
>>
>> Any principle C++ / Threading thing I could have done wrong ?
>>     
>
> A stab in the dark, really, but do you do excessive locking? That
> might slow the threads down.
>
>
>   
I am not locking at all. The only Qt spezific thing I am doing is 
calling a signal at the end of each Iteration. But that should not take 
long compared to the real calculation part.




More information about the Qt-interest-old mailing list