[pygtk] some test on how to improve the load time of pygtk

John Ehresman jpe at wingware.com
Tue Jul 25 23:10:09 WST 2006


Rafael Espíndola wrote:
> Another unrelated improvement that I have in mind is to try to reduce
> the size of the generated code.
> 
> For example,   _wrap_gtk_icon_set_copy can be implemented as
> ----------------------------------------------------------------------
> static PyObject *
> _wrap_gtk_icon_set_copy(PyObject *self)
> ...
> static PyObject *
> foo(PyObject *self, f_type *f)

You may want to look at using the python ctypes module (or something 
like it) to generate wrappers and / or the introspection work in gnome's 
bugzilla.  A possibility is to embed tables of data about call 
signatures into pygtk, use ctypes to call down to the native functions, 
and then migrate to embedded gobject introspection info if / when it 
becomes available.

John


More information about the pygtk mailing list