From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 CB9347EE4B for ; Mon, 30 Sep 2013 16:12:03 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of sylvain@le-gall.net) identity=pra; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="sylvain@le-gall.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gclci-caml-list@m.gmane.org designates 80.91.229.3 as permitted sender) identity=mailfrom; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="gclci-caml-list@m.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@plane.gmane.org designates 80.91.229.3 as permitted sender) identity=helo; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="postmaster@plane.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIAAJGFSVJQW+UDmWdsb2JhbABagz+ud5QEFg4BAQEBAQgLCwcUKIIlAQEFJ0cbCxgNIRAsCRIZEodiAxMIs08DiXSOAoFshAwDmS6Tbg X-IPAS-Result: AuIAAJGFSVJQW+UDmWdsb2JhbABagz+ud5QEFg4BAQEBAQgLCwcUKIIlAQEFJ0cbCxgNIRAsCRIZEodiAxMIs08DiXSOAoFshAwDmS6Tbg X-IronPort-AV: E=Sophos;i="4.90,1008,1371074400"; d="scan'208";a="34924186" Received: from plane.gmane.org ([80.91.229.3]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 30 Sep 2013 16:12:02 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VQeCg-0001Rt-4i for caml-list@inria.fr; Mon, 30 Sep 2013 16:12:02 +0200 Received: from root.ovh.le-gall.net ([37.59.37.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Sep 2013 16:12:02 +0200 Received: from sylvain by root.ovh.le-gall.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Sep 2013 16:12:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Date: Mon, 30 Sep 2013 14:11:43 +0000 (UTC) Message-ID: References: <5229DEF9.7040706@inria.fr> <5229F284.5050806@inria.fr> <5249310F.7090108@riken.jp> X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: root.ovh.le-gall.net User-Agent: slrn/pre1.0.0-18 (Linux) Subject: Re: [Caml-list] from oasis to obuild (original subject was Re: Accelerating compilation) Hello, On 30-09-2013, Francois Berenger wrote: > On 09/07/2013 05:51 AM, Fabrice Le Fessant wrote: > > [...] >> FWIW, I recently compiled Merlin with both ocamlbuild and ocp-build, >> on a quad-core with "-j 10" for both (the link to the ocp-build >> description file is in the latest OCamlPro's report), ocamlbuild needs >> 13s where ocp-build only needs 4s to compile everything. > > I recently switched from oasis to obuild. > > The main reason I adopted oasis in the past is because the project > description file (_oasis) is very short. > > With ocp-build, (as far as I know) I would have to list all the files > my program/libraries need to be built, and I am too lazy for that. > > But now, I have a project.obuild file instead, which > is as terse as an _oasis file. > > Here is my project.obuild file: > --- > Name: something > Version: 0.1 > Authors: me > License: GPL > Synopsis: some_more_things > obuild-ver: 1 > > Executable ac > Path: . > BuildDepends: batteries, dolog, parmap, vector3, biniou, atd, atdgen > MainIs: ac.ml > > [...] some other executables follow > --- > > Compile time before, with oasis: > > # cat build.sh > #!/bin/bash > > #set -x > > oasis setup > ocaml setup.ml -configure > ocaml setup.ml -build > > # time ./build.sh > real 0m9.397s > > Compile time after, with obuild: > # obuild clean && time (obuild configure && obuild build -j 1) > real 0m3.624s > Note that given the proximity of obuild and _oasis files it should be super easy to just convert 1 time the _oasis file to foo.obuild and keep using _oasis while changing the build backend from ocamlbuild to obuild. OASIS is not building anything by itself, the time you report is probably 90% due to ocamlbuild (the build backend). BTW, this kind of _oasis -> obuild conversion is a topic I have discussed with the author of obuild and I am 100% willing to do the conversion plugin if it makes sense. Regards Sylvain > -- > Best regards, > Francois Berenger. > > -- > 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 > Cheers, Sylvain Le Gall -- Website: http://sylvain.le-gall.net/ OCaml forge: http://forge.ocamlcore.org OCaml blogs: http://planet.ocaml.org