[PATCH] Use G_MODULE_BIND_LAZY when loading modules



Hi all.

As part of the last Performance Love Day there has been an effort to
find applications loading run-time modules using g_module_open and
changing the flag to G_MODULE_BIND_LAZY, since lazy loading increases
performance by loading just the needed symbols instead of mapping the
whole symbols.  GTK, GLib, Pango and others have already switched [0].

The patch attached to bug #320253 [1] fixes this.

The epiphany people noticed that using this inside development versions
makes module debugging a little bit harder, so it should be enabled only
on stable releases.

Ciao,
 Emmanuele.

[0] http://bugzilla.gnome.org/show_bug.cgi?id=319557
[1] http://bugzilla.gnome.org/show_bug.cgi?id=320253

-- 
Emmanuele Bassi - <ebassi gmail com>
Log: http://log.emmanuelebassi.net




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