[Libguestfs] [PATCH] daemon: Compile stubs.c first.

Richard W.M. Jones rjones at redhat.com
Wed Sep 30 11:08:50 UTC 2015


This shaves about 20% off the compile time for the daemon subdirectory.

See also:
https://rwmj.wordpress.com/2015/09/30/make-and-queuing-theory/#content
---
 daemon/Makefile.am | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 1d29a0f..4ea3c88 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -76,7 +76,11 @@ else
 noinst_PROGRAMS = guestfsd
 endif
 
+# Compile the largest file (stubs.c) first.  The other files are
+# listed alphabetically.  See also:
+# https://rwmj.wordpress.com/2015/09/30/make-and-queuing-theory/#content
 guestfsd_SOURCES = \
+	stubs.c \
 	9p.c \
 	acl.c \
 	actions.h \
@@ -162,7 +166,6 @@ guestfsd_SOURCES = \
 	stat.c \
 	statvfs.c \
 	strings.c \
-	stubs.c \
 	swap.c \
 	sync.c \
 	syslinux.c \
-- 
2.5.0




More information about the Libguestfs mailing list