[Qt-interest] Calculation in Thread extremly slow

Scott Aron Bloom Scott.Bloom at sabgroup.com
Mon Mar 30 10:35:21 CEST 2009


What type of connection is the signal to slot?  Is it auto or a queued
connection?

Scott

> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Matthias Pospiech
> Sent: Monday, March 30, 2009 1:17 AM
> To: Srdjan Todorovic
> Cc: qtInterest
> Subject: Re: [Qt-interest] Calculation in Thread extremly slow
> 
> 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.
> 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list