From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 7D9CB7F89F for ; Wed, 2 Apr 2014 23:01:14 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anders@fugmann.net) identity=pra; client-ip=90.184.182.235; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anders@fugmann.net"; x-sender="anders@fugmann.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of anders@fugmann.net designates 90.184.182.235 as permitted sender) identity=mailfrom; client-ip=90.184.182.235; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anders@fugmann.net"; x-sender="anders@fugmann.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@fw.fugmann.net) identity=helo; client-ip=90.184.182.235; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anders@fugmann.net"; x-sender="postmaster@fw.fugmann.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqIEAE16PFNauLbr/2dsb2JhbABZgmXCC4MOgTl0giUBAQEEOEABEAsYCRYPCQMCAQIBRQYNAQcCh3YDzzIXjnAHhDgBA6sRgzI X-IPAS-Result: AqIEAE16PFNauLbr/2dsb2JhbABZgmXCC4MOgTl0giUBAQEEOEABEAsYCRYPCQMCAQIBRQYNAQcCh3YDzzIXjnAHhDgBA6sRgzI X-IronPort-AV: E=Sophos;i="4.97,782,1389740400"; d="scan'208";a="55302723" Received: from 0405ds1-vaer.1.fullrate.dk (HELO fw.fugmann.net) ([90.184.182.235]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 02 Apr 2014 23:00:57 +0200 Received: from [IPv6:2001:470:dc46:1:daa2:5eff:fe95:453e] (unknown [IPv6:2001:470:dc46:1:daa2:5eff:fe95:453e]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by fw.fugmann.net (Postfix) with ESMTPSA id 6A252810B9D; Wed, 2 Apr 2014 23:00:55 +0200 (CEST) Message-ID: <533C7A87.2000605@fugmann.net> Date: Wed, 02 Apr 2014 23:00:55 +0200 From: Anders Peter Fugmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.4.0 MIME-Version: 1.0 To: Fabrice Le Fessant CC: caml-list References: <533C6FC2.9080406@fugmann.net> <9EC7944797D54A8E893837CB84026489@erratique.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Validation-by: anders@fugmann.net Subject: Re: [Caml-list] Speeding up compilation On 02/04/14 22:43, Fabrice Le Fessant wrote: > ocp-build uses a trick to speed-up compilations with camlp4: it > preprocesses every file only once, and then uses the generated file (a > binary version of the file AST) with ocamldep, ocamlc and ocamlopt. It > usually means a x3 speedup. > Good idea. What would indeed speed up dependency generation. Do you know if its possible to have ocamlfind generate a binary version of the AST as a separate step? Regards Anders