PDA

View Full Version : Performance issue when using signals



baluk
17th November 2010, 18:32
Hi,

I have a doubt which concerns about using signals in Qt app. I am using about 20 signal slot functions in my app and of those signals some are called repeatedly. Though I like this mechanism very much, in fact my work has been reduced a lot with this, I would still want to know the limitation of using this feature in the application. I would really appreciate for your opinions.

Thank You in Advance,

Baluk

tbscope
17th November 2010, 19:04
It depends.

For any normal application (complex or not) it doesn't matter, the overhead is so small you can neglect it.
In special situations, there might be better techniques.

Timoteo
18th November 2010, 04:07
Think of the signal/slot mechanism as being a fly. If your object is an elephant, it isn't going to notice the added weight. If your object is a gnat, then you have a problem.