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 7DFDB7F89E for ; Thu, 3 Apr 2014 04:10:20 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of berenger@riken.jp) identity=pra; client-ip=134.160.33.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of berenger@riken.jp designates 134.160.33.176 as permitted sender) identity=mailfrom; client-ip=134.160.33.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="berenger@riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of postmaster@postman.riken.jp designates 134.160.33.176 as permitted sender) identity=helo; client-ip=134.160.33.176; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="berenger@riken.jp"; x-sender="postmaster@postman.riken.jp"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkMGAJLBPFOGoCGwgWdsb2JhbABZg0GORZ8KlnKBMg4BARYmKIIlAQEBBDIBBTYKEQsYCQQSDwkDAgECATMSEwYCAQEOh1MDEQ3IGQOHQBeOdxaEIgSJVo8CgTOURQ X-IPAS-Result: AkMGAJLBPFOGoCGwgWdsb2JhbABZg0GORZ8KlnKBMg4BARYmKIIlAQEBBDIBBTYKEQsYCQQSDwkDAgECATMSEwYCAQEOh1MDEQ3IGQOHQBeOdxaEIgSJVo8CgTOURQ X-IronPort-AV: E=Sophos;i="4.97,783,1389740400"; d="scan'208";a="55321963" Received: from postman4.riken.jp (HELO postman.riken.jp) ([134.160.33.176]) by mail3-smtp-sop.national.inria.fr with ESMTP; 03 Apr 2014 04:10:18 +0200 Received: from postman.riken.jp (postman4.riken.jp [127.0.0.1]) by postman.riken.jp (Postfix) with SMTP id BF0E1828093 for ; Thu, 3 Apr 2014 11:10:14 +0900 (JST) Received: from watson.prg.gsc.riken.jp (ipm04.gsc.riken.go.jp [134.160.83.74]) by postman.riken.jp (Postfix) with ESMTPA id 2D4ED7F803F for ; Thu, 3 Apr 2014 11:10:14 +0900 (JST) Message-ID: <533CC306.4000301@riken.jp> Date: Thu, 03 Apr 2014 11:10:14 +0900 From: Francois Berenger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: caml-list@inria.fr References: <533C6FC2.9080406@fugmann.net> <9EC7944797D54A8E893837CB84026489@erratique.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2014.4.3.20316 Subject: Re: [Caml-list] Speeding up compilation I've had good experience shifting all my projects from whatever they were using to obuild[1]. ;) More seriously (yeah, shameless plug...), I have heard that people handling a lot of OCaml source files and interested in fast compilation use omake[2]. I also heard that there is an incremental build feature in merlin[3]. I did not try omake because I am too lazy to learn a new syntax to describe my build. I tried merlin, but it made my Emacs lag, so I removed it quickly after a few days of trial. [1] https://github.com/ocaml-obuild/obuild [2] http://omake.metaprl.org/index.html [3] https://github.com/the-lambda-church/merlin On 04/03/2014 05:54 AM, Yotam Barnoy wrote: > I've had good experience shifting from a custom makefile to using > ocamlbuild on a project with around 120 files and moderate preprocessing. > The custom makefile was a pain to maintain and seemed to be doing too much > work. > > -Yotam > > > On Wed, Apr 2, 2014 at 4:43 PM, Fabrice Le Fessant < > Fabrice.Le_fessant@inria.fr> 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. >> >> --Fabrice >> >> >> On Wed, Apr 2, 2014 at 10:34 PM, Daniel Bünzli < >> daniel.buenzli@erratique.ch> wrote: >> >>> >>> >>> Le mercredi, 2 avril 2014 à 22:14, Anders Peter Fugmann a écrit : >>> >>>> Is there any way to use a optimized version of camlp4. >>> >>> Not sure that this will work as it it not mentioned in the documentation >>> [1] but did you try to add >>> >>> camlp4="camlp4.opt" >>> >>> in .opam/$SWITCH/lib/findlib.conf (or wherever it is on your machine). >>> >>> Best, >>> >>> Daniel >>> >>> [1] >>> http://projects.camlcity.org/projects/dl/findlib-1.4.1/doc/ref-html/r775.html >>> >>> >>> >>> -- >>> Caml-list mailing list. Subscription management and archives: >>> https://sympa.inria.fr/sympa/arc/caml-list >>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >>> Bug reports: http://caml.inria.fr/bin/caml-bugs >>> >> >> >> >> -- >> Fabrice LE FESSANT >> Chercheur en Informatique >> INRIA Paris Rocquencourt -- OCamlPro >> Programming Languages and Distributed Systems >> > -- Best regards, Francois Berenger.