GNOME Bugzilla – Bug 693243
[meta] Optimize module load times
Last modified: 2018-01-10 20:22:27 UTC
Tracking ticket for holding bugs related to optimizations which could improve load times of gi modules.
Current top ten of a load time profile: $ cat profile_test.py from gi.repository import GObject, Gio, GLib, Gtk, Gdk, Pango, Clutter, Gst $ python -m cProfile -s tottime profile_test.py 93580 function calls (92149 primitive calls) in 0.106 seconds Ordered by: internal time ncalls tottime cumtime filename:lineno(function) 46 0.021 0.021 {method 'invoke' of 'gi.CallableInfo' objects} 2436 0.008 0.019 types.py:72(get_callable_info_doc_string) 11293 0.005 0.005 {method 'get_name' of 'gi.BaseInfo' objects} 2436 0.005 0.026 types.py:101(update_func) 185/162 0.004 0.053 module.py:130(__getattr__) 287 0.003 0.003 {method 'get_g_type' of 'gi.RegisteredTypeInfo' objects} 2436 0.003 0.005 types.py:53(split_function_info_args) 131 0.003 0.033 types.py:151(_setup_methods) 2317 0.002 0.027 types.py:110(Function) 2482 0.002 0.002 {method 'get_pytype_hint' of 'gi.ArgInfo' objects} Tickets regarding these will be added as dependents.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pygobject/issues/44.