mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
mainloop: Add g_source_set_static_name
g_source_set_name duplicates the string, and this is showing up as one of the more prominent sources of strdups in GTK profiles, despite all the names we use being literals. Add a variant that avoids the overhead.
This commit is contained in:
@@ -916,6 +916,7 @@ g_source_get_can_recurse
|
||||
g_source_get_id
|
||||
g_source_get_name
|
||||
g_source_set_name
|
||||
g_source_set_static_name
|
||||
g_source_set_name_by_id
|
||||
g_source_get_context
|
||||
g_source_set_callback
|
||||
|
Reference in New Issue
Block a user