I hope this one makes sense Benny :-). * Reduce relocations using _netk_g_type_register_simple * Free class_groups lists
Created attachment 815 Patch
A test for newer glib (2.10) would be nice and if found, pass the result of g_intern_static_string() for type_name in _netk_g_type_register_simple(), otherwise pass type_name as is, so that static strings don't need to be duplicated on the heap.
Created attachment 845 Patch v2 Same patch but with the I_(...) macro, also for g_signal_new.
One last thing: Signals should use the canonical form, that is '-' instead of '_'. Otherwise I_() for signals doesn't save any memory. ;-)
Err, ups, the other way round, '_' is the canonical form. ;-)
Meh, confusing myself... The canonical form is using '-', that's the way used to store the signal node, but the '_'-form is also registered as quark. So, it doesn't even matter which way you use it.
Committed with revision 23615.