[Qt-interest] Calculation in Thread extremly slow

Srdjan Todorovic todorovic.s at googlemail.com
Mon Mar 30 10:13:56 CEST 2009


Hi,

2009/3/30 Matthias Pospiech <matthias.pospiech at gmx.de>:
> I have a time consuming calculation, which is mainly doing FFTs and
> memcpy operations.

[snip]

> 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.

Srdjan



More information about the Qt-interest-old mailing list