Skip to content

Don't pass generic marshaller to g_signal_newv()

Niels De Graef requested to merge wip/nielsdg/signal-marshaller into master

By passing NULL to g_signal_newv, GLib will do an attempt to internally optimize the marshalling by setting one of the default marshallers in GLib (and its valist variant), which is a little bit faster than the regular marshalling using GValue and libffi.

So, by passing NULL, we can get a little performance bump.

Merge request reports