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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id A65F67F89E for ; Wed, 2 Apr 2014 22:54:34 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of yotambarnoy@gmail.com) identity=pra; client-ip=209.85.216.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="yotambarnoy@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of yotambarnoy@gmail.com designates 209.85.216.45 as permitted sender) identity=mailfrom; client-ip=209.85.216.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="yotambarnoy@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-qa0-f45.google.com) identity=helo; client-ip=209.85.216.45; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="yotambarnoy@gmail.com"; x-sender="postmaster@mail-qa0-f45.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am4EAHt4PFPRVdgteGdsb2JhbABZg0FXrHSNfoh0gRsIFg4BFSYqgiUBAQEDAUABGxILAQMBCwYFBAcNDSEiAREBBQEKEgYTEodSAQMJCA2hD4xfgw6WIAoZJwMKZIZSEQEFDI5gBAeEOASYWIEzjxcYKYR6IQ X-IPAS-Result: Am4EAHt4PFPRVdgteGdsb2JhbABZg0FXrHSNfoh0gRsIFg4BFSYqgiUBAQEDAUABGxILAQMBCwYFBAcNDSEiAREBBQEKEgYTEodSAQMJCA2hD4xfgw6WIAoZJwMKZIZSEQEFDI5gBAeEOASYWIEzjxcYKYR6IQ X-IronPort-AV: E=Sophos;i="4.97,782,1389740400"; d="scan'208";a="66102234" Received: from mail-qa0-f45.google.com ([209.85.216.45]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 02 Apr 2014 22:54:33 +0200 Received: by mail-qa0-f45.google.com with SMTP id hw13so745470qab.32 for ; Wed, 02 Apr 2014 13:54:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=3MNVS04JKuWvZGCntZL5jv4saqsLoTVdavWbG4jQ55k=; b=YAc35Yszby5hJNyyv+7jLjYBf/razuQVeTR5xRUyIts3nP7uasoN47QoMMlhb2mJeC 96cmxJlidM7nLBvKRdAHfCZzBATCrnGKtMZGdMOk71cs5gS+vbk2XmSCFAiRUbNXuvsC uXRQXPXs2dP4+Sj7pYiDAONwQDSTOVNQabt3m4MkO/3O6U16XaNbP4m1/huI92eDYQoy b4S2+aU7TBGs0BARacR81wEnOYyqn599WFLCthHNViCONfR4tyIsPjnapvnAbGBGvLYv BvR19R/hWrQAQMrOBNlSqh1gObKn0onb6WDChncsDemPfcZ1J+D6uKsLk9D6pJF0WkUL /SiQ== X-Received: by 10.229.192.7 with SMTP id do7mr3293075qcb.1.1396472072863; Wed, 02 Apr 2014 13:54:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.168.72 with HTTP; Wed, 2 Apr 2014 13:54:12 -0700 (PDT) In-Reply-To: References: <533C6FC2.9080406@fugmann.net> <9EC7944797D54A8E893837CB84026489@erratique.ch> From: Yotam Barnoy Date: Wed, 2 Apr 2014 16:54:12 -0400 Message-ID: To: Fabrice Le Fessant Cc: =?ISO-8859-1?Q?Daniel_B=FCnzli?= , Anders Peter Fugmann , caml-list Content-Type: multipart/alternative; boundary=001a11337d4ad787aa04f6157dc5 Subject: Re: [Caml-list] Speeding up compilation --001a11337d4ad787aa04f6157dc5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=FCnzli < > daniel.buenzli@erratique.ch> wrote: > >> >> >> Le mercredi, 2 avril 2014 =E0 22:14, Anders Peter Fugmann a =E9crit : >> >> > 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=3D"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 > --001a11337d4ad787aa04f6157dc5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I've had good experience shifting from a custom m= akefile 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 s= peed-up compilations with camlp4: it preprocesses every file only once, and= then uses the generated file (a binary version of the file AST) with ocaml= dep, ocamlc and ocamlopt. It usually means a x3 speedup.

--Fabrice


On Wed, Apr 2, 2014 at 10:34 = PM, Daniel B=FCnzli <daniel.buenzli@erratique.ch> = wrote:


Le mercredi, 2 avril 2014 =E0 22:14, Anders Peter Fugmann a =E9crit :

> Is there any way to use a optimized version of camlp4.

Not sure that this will work as it it not mentioned in the documentat= ion [1] but did you try to add

camlp4=3D"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. =A0Subscription management and archives:
ht= tps://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 Distribut= ed Systems

--001a11337d4ad787aa04f6157dc5--