Re: Slow loading, moving base code to C



There is now a patch set [1] which includes lazy doc string evaluation along with the removal of wrapped invoke/info objects. With the whole patch set, I'm observing an overall %20 improvement for Gtk import times and a %14 improvement for single argument function calls. Reviews are needed and welcome.

-Simon

[1] https://bugzilla.gnome.org/show_bug.cgi?id=704037



On Thu, Jul 11, 2013 at 12:19 PM, Simon Feltman <s feltman gmail com> wrote:
On Thu, Jul 11, 2013 at 11:57 AM, Johan Dahlin <johan gnome org> wrote:
I haven't followed pyobject introspection development very closely as of late,
but I can imaging that the overrides mechanism is something that could
potentially
slow down the import considerably. Eg, lazy class creation won't work with
overrides.

You should follow it, we need your help! :)

We might not be able to use lazy class creation for overrides but what about the methods and vfuncs on the classes? Essentially doing the same thing IntrospectionModule.__getattr__ does. We certainly don't need to finalize the loading of all 430 methods on Gtk.Widget at import time?






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]