[Qt-interest] Signal/Slot model is suitable for GUI applications but it isn't for console applications
Valeriy Portnyagin
portnyagin at reksoft.ru
Mon Aug 23 15:31:15 CEST 2010
before continue, I didn't make any tests but my colleague made some tests
with a work of signals/slots and the call of virtual function.
>From his words the difference was about 100 times. The call of virtual
function was about 100 times faster than Signal/Slot mechanism!
Therefore I have asked this question here.
regards,
Valery Portnyagin.
From:
"william.crocker at analog.com" <william.crocker at analog.com>
To:
Cc:
qt-interest at trolltech.com
Date:
23.08.2010 17:12
Subject:
Re: [Qt-interest] Signal/Slot model is suitable for GUI applications but
it isn't for console applications
>
> Could i say that Signal/Slot model is suitable for GUI applications but
> it isn't for console applications?
> I am developing a console application with many threads. I am using the
> signals and slots between the threads.
> How much performance of my application will be worse at usage of
> Signal/Slot model?
>
1 - Do whatever you have to do to get your
program working and giving the right answer
as soon as possible.
2 - Create regression tests to preserve
that right answer.
3 - If it is then too slow, profile and
address the bottle necks.
With experience, next time you will see the
bottle necks coming.
Bill
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100823/798553ee/attachment.html
More information about the Qt-interest-old
mailing list