From f05865ad3a1f61bb847c72845f447e368a33a962 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 12 Nov 2017 15:18:21 -0800 Subject: [PATCH] build: use xml-stripblanks with .ui resources This adds a preprocess step to the .ui files to strip them of blank characters. It also removes the compressed='true' from the .ui files since that involves creating lots of decompressor objects when creating widgets. Doing so has runtime overhead and slows down the creation of initial application windows. The .ui files are left compressed for the Inspector, since that is not in the core performance path of application startup. --- gtk/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 54a2ca4908..795c885da8 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1309,7 +1309,7 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc done; \ for f in $(srcdir)/ui/*.ui; do \ n=`basename $$f`; \ - echo " ui/$$n" >> $@; \ + echo " ui/$$n" >> $@; \ done; \ for s in 16x16 22x22 24x24 32x32 48x48; do \ for c in actions status; do \ @@ -1322,7 +1322,7 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc done; \ for f in $(srcdir)/inspector/*.ui; do \ n=`basename $$f`; \ - echo " inspector/$$n" >> $@; \ + echo " inspector/$$n" >> $@; \ done; \ echo " inspector/logo.png" >> $@; \ echo " emoji/emoji.data" >> $@; \