diff options
author | Sébastien Wilmet <swilmet@gnome.org> | 2012-12-25 22:54:51 +0100 |
---|---|---|
committer | Sébastien Wilmet <swilmet@gnome.org> | 2012-12-28 21:49:03 +0100 |
commit | 1c57beb586e2e7742e5c3775ce2ddc408723578d (patch) | |
tree | 764afac19f13a1c09b392326fb8cf1b44115f847 /gtksourceview/gtksourcecompletion-private.h | |
parent | 5619a176c6ce32aa0c8e64e263b0fa5a6f5edf39 (diff) | |
download | gtksourceview-1c57beb586e2e7742e5c3775ce2ddc408723578d.tar.gz |
Use G_GNUC_INTERNAL to avoid exporting private symbols
With the relinfo.pl script from Ulrich Drepper, here are the results.
Before:
128 relocations, 105 relative (82%), 946 PLT entries, 247 for local syms (26%)
After:
125 relocations, 103 relative (82%), 880 PLT entries, 181 for local syms (20%)
Private symbols prefixed with an underscore (or without the gtk_source_
prefix) were not exported. However G_GNUC_INTERNAL is beneficial for
them too because the compiler is now aware that those symbols are not
exported, and therefore it can better optimize the code.
Another problem remains: the big number of PLT entries for local
symbols. Normally it should be 0 I think (it is 0 for the glib, gio and
gtk+, for example, so it should be possible for GSV too).
Diffstat (limited to 'gtksourceview/gtksourcecompletion-private.h')
-rw-r--r-- | gtksourceview/gtksourcecompletion-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtksourceview/gtksourcecompletion-private.h b/gtksourceview/gtksourcecompletion-private.h index 492eab18..cf9f9304 100644 --- a/gtksourceview/gtksourcecompletion-private.h +++ b/gtksourceview/gtksourcecompletion-private.h @@ -28,6 +28,7 @@ /* Forward declaration */ struct _GtkSourceView; +G_GNUC_INTERNAL GtkSourceCompletion *gtk_source_completion_new (struct _GtkSourceView *source_view); #endif /* __GTK_SOURCE_COMPLETION_PIVATE_H__ */ |