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

Pino Toscano ptoscano at redhat.com
Wed Sep 30 12:25:19 UTC 2015


On Wednesday 30 September 2015 12:08:50 Richard W.M. Jones wrote:
> 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 \

Funky one -- I'd say to go with the patch, at most it won't make things
better nor worse.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20150930/3d7f0365/attachment.sig>


More information about the Libguestfs mailing list