[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v1 1/7] tools/ocaml/Makefile: do not run ocamldep during make clean


  • To: Edwin Török <edvin.torok@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 3 Aug 2022 12:16:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7MAmTKl8Wx/kn7m86HA3ENf+E1FXDKhFgPuoTa77F5E=; b=Gh3N62ZEUJCatE32DqwLXlYdSv3xMoB7W0sccfNsZ+YxgzN52b54XUasfRcrvV+bbZzdro9lprt4YS7SFn8kM38vla5FVpkXAm8jtyKeKvRVPslPYief6GPSZvoxxAUXKqiGpkPm20Tqd1tQLvfQ0tuaM797uicNCVkOWuBpf0cwnXnIaAKkQZ2r0Ojb5WTBCAdM1O/Cv6Ofc5VTzGwWeJzoicg1TZHha7SLA2ydZYy4RfUQZNs8vWHO3xt+Gbg4pycdGBOOUoGJxVofO3IkDzu8LCLCnp3yCtbRO9vyOWXLjS542HH6M5Tnd3Odz3Q9dVzCtWdbZcJNcr9toMI+fg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V3uIU7Cz5k42cQAu9T6Rn3jdSGzHXVhwjGJYkRjPx93FzFT3mqAmo7f/AXK2tqVW3gXFEQfruEjw094fsmW+RFiAy/Jf0L9xAU0XK5Yt/yl0M/g1ltzb8v2eoXjluDmNTiRl8gmaHbIyXhiQOLrx8Z3oa2VLeWVOLaGH72+aNt57ixbcVGTXSvtBzCVi0ykZzBPC8bud7vE3iQZ8vhq6t93GfZ2sec0BbaJdGN4PI0NVCOl+eJ3Ipk1YRwwbd3H+1JwBICXBVb0tgY32+Nh8QEiaHvPAcUAxQ7n3b4tZA+y3AwYcqSYX04nB/kA4QOVIYkHXDUZSqZ967UoM/O9zTA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Christian Lindig <christian.lindig@xxxxxxxxxx>, David Scott <dave@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 03 Aug 2022 10:16:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29.07.2022 19:53, Edwin Török wrote:
> Trying to include .ocamldep.make will cause it to be generated if it
> doesn't exist.
> We do not want this during make clean: we would remove it anyway.
> 
> Speeds up make clean.
> 
> Before (measured on f732240fd3bac25116151db5ddeb7203b62e85ce, July 2022):
> ```
> Parsing 
> /home/edwin/xen2/tools/ocaml/libs/xl/../../../../tools/libs/light/libxl_types.idl
> Parsing 
> /home/edwin/xen2/tools/ocaml/libs/xl/../../../../tools/libs/light/libxl_types.idl
> Parsing 
> /home/edwin/xen2/tools/ocaml/libs/xl/../../../../tools/libs/light/libxl_types.idl
> Parsing 
> /home/edwin/xen2/tools/ocaml/libs/xl/../../../../tools/libs/light/libxl_types.idl
> Parsing 
> /home/edwin/xen2/tools/ocaml/libs/xl/../../../../tools/libs/light/libxl_types.idl
> 
>  Performance counter stats for 'make clean -j8 -s' (5 runs):
> 
>             4.2233 +- 0.0208 seconds time elapsed  ( +-  0.49% )
> ```
> 
> After:
> ```
> perf stat -r 5 --null make clean -j8 -s
> 
>  Performance counter stats for 'make clean -j8 -s' (5 runs):
> 
>             2.7325 +- 0.0138 seconds time elapsed  ( +-  0.51% )
> ```
> 
> No functional change.
> 
> Signed-off-by: Edwin Török <edvin.torok@xxxxxxxxxx>

I've committed this as is since it was acked and is an improvement
in any event, but ...

> --- a/tools/ocaml/Makefile.rules
> +++ b/tools/ocaml/Makefile.rules
> @@ -44,8 +44,10 @@ META: META.in
>  
>  ALL_OCAML_OBJ_SOURCES=$(addsuffix .ml, $(ALL_OCAML_OBJS))
>  
> +ifneq ($(MAKECMDGOALS),clean)
>  .ocamldep.make: $(ALL_OCAML_OBJ_SOURCES) Makefile 
> $(OCAML_TOPLEVEL)/Makefile.rules
>       $(call quiet-command, $(OCAMLDEP) $(ALL_OCAML_OBJ_SOURCES) *.mli 
> $o,MLDEP,)
> +endif

... what about the distclean goal?

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.