[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] PyQt C API
From:       "Giovanni Bajo" <rasky () develer ! com>
Date:       2005-10-18 7:54:13
Message-ID: 026d01c5d3b9$218d3540$dfb92997 () bagio
[Download RAW message or body]

Toby Dickenson <tdickenson@devmail.geminidataloggers.co.uk> wrote:

> I am considering translating a few functions of our large PyQt
> application to C (or, probably, pyrex) as a performance optimisation,
> but I have stumbled at the first hurdle. How do you convert a
> PyObject pointer to a PyQt object into a pointer to the Qt C++ object?


I don't think it is possible. I also think that the performance sensitive parts
shouldn't have anything to do with PyQt in the first place. We use Pyrex
exactly for this purpose, but the parts we optimize are far far far from the
package which imports and uses PyQt. I'm failry positive that, even if your
application is not well decoupled, you can still isolate the performance
sensitive algorithms in functions which have nothing to do with PyQt.

Giovanni Bajo

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic