docs: Clarify costs of using the generic GObject C closure marshaller

The libffi one is slower than type-specific generated ones, but is
generally better to use.

https://bugzilla.gnome.org/show_bug.cgi?id=744060
This commit is contained in:
Philip Withnall
2015-02-24 08:50:53 +00:00
parent e57741791e
commit 57d0ec57e4
2 changed files with 17 additions and 5 deletions

View File

@@ -124,7 +124,8 @@ return_type function_callback (… , gpointer user_data);
A generic C closure marshaller is available as
<link linkend="g-cclosure-marshal-generic"><function>g_cclosure_marshal_generic</function></link>
which implements marshalling for all function types using libffi. Custom
marshallers for different types are not needed.
marshallers for different types are not needed apart from performance
critical code where the libffi-based marshaller may be too slow.
</para>
<para>