GNOME Bugzilla – Bug 615982
Use the stack allocation API from GObject-Introspection
Last modified: 2013-01-08 16:14:28 UTC
Stack allocation is significantly faster and avoids a whole lot of reference counting responsibility from PyGI. We should work on converting all functions of the form GArgType *arg_type; arg_type = g_arg_info_get_return_type(arg_info); to GArgType arg_type; g_arg_info_load_return_type(arg_info, &arg_type);
For anyone looking at this here in the future, GArgType has become GITypeInfo, and GArgInfo has become GICallableInfo.
Assuming that this still applies.
Done in http://git.gnome.org/browse/pygobject/commit/?id=c02a00ae9599a661076630b21b7e24e78fb88c29 We still have a few _get_ methods in pygi-cache.c, as these are kept for a long time in the PyGIArgCache* structs.