Richard W.M. Jones
2015-Sep-30 11:08 UTC
[Libguestfs] [PATCH] daemon: Compile stubs.c first.
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
Pino Toscano
2015-Sep-30 12:25 UTC
Re: [Libguestfs] [PATCH] daemon: Compile stubs.c first.
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
Possibly Parallel Threads
- using gnulib from daemon/
- [PATCH v2 1/7] lib: Share common protocol and errnostring libraries with the library and daemon.
- Re: [PATCH v2 1/7] lib: Share common protocol and errnostring libraries with the library and daemon.
- [PATCH] Fix dependencies on generator.ml
- Fix parallel make (v3)