[PyQt] Re: Serious performance problem with sipQtFindConnection

Giovanni Bajo rasky at develer.com
Tue Sep 18 10:44:51 BST 2007

On 9/17/2007 8:45 PM, Phil Thompson wrote:

> Can you instrument the code in qobject.sip to count the different calls 
> to "new PyQtProxy()" - there are 3 different places I think. Then display the 
> 3 counts when things start to go wrong.

signal shortcuts = 97
signals = 98
slots = 434

> One possible solution would be to keep the proxy instances used as slots in a 
> separate list - but only if that count is low.

it's the highest count...

> Another solution would be to maintain a flag in the sipWrapper that is set if 
> the instance might have a connected method and only search if the flag is 
> set.
> Obviously there are other solutions, but the counts should point us in the 
> right direction.

Instead of a linked list, can't we have something like a hash table, 
indexed by the transmitter? You almost always go through the list 
looking for a specific transmitter.
Giovanni Bajo

More information about the PyQt mailing list