From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 7C5DF7EE4D for ; Mon, 30 Sep 2013 11:13:20 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=pra; client-ip=89.16.177.154; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of anil@recoil.org) identity=mailfrom; client-ip=89.16.177.154; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="anil@recoil.org"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@dark.recoil.org) identity=helo; client-ip=89.16.177.154; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="anil@recoil.org"; x-sender="postmaster@dark.recoil.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvwBADBASVJZELGal2dsb2JhbABagz+tUpN6gT0OAQEBAQEIFgc8giUBAQQBeQULCxguVwYTiAAKvFCPHjMHgx+BAwOXf4EvkjCBPzs X-IPAS-Result: AvwBADBASVJZELGal2dsb2JhbABagz+tUpN6gT0OAQEBAQEIFgc8giUBAQQBeQULCxguVwYTiAAKvFCPHjMHgx+BAwOXf4EvkjCBPzs X-IronPort-AV: E=Sophos;i="4.90,1007,1371074400"; d="scan'208";a="28525516" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail3-smtp-sop.national.inria.fr with SMTP; 30 Sep 2013 11:13:10 +0200 Received: (qmail 30094 invoked by uid 634); 30 Sep 2013 09:13:09 -0000 X-Spam-Level: * X-Spam-Check-By: dark.recoil.org Received: from zone3.jesus.cam.ac.uk (HELO [192.168.22.175]) (131.111.243.143) (smtp-auth username remote@recoil.org, mechanism cram-md5) by dark.recoil.org (qpsmtpd/0.84) with ESMTPA; Mon, 30 Sep 2013 10:13:08 +0100 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1811\)) From: Anil Madhavapeddy In-Reply-To: Date: Mon, 30 Sep 2013 10:13:07 +0100 Cc: Francois Berenger , Ocaml Mailing List Content-Transfer-Encoding: quoted-printable Message-Id: References: <5229DEF9.7040706@inria.fr> <5229F284.5050806@inria.fr> <5249310F.7090108@riken.jp> To: Fabrice Le Fessant X-Mailer: Apple Mail (2.1811) X-Virus-Checked: Checked by ClamAV on dark.recoil.org Subject: Re: [Caml-list] from oasis to obuild (original subject was Re: Accelerating compilation) On 30 Sep 2013, at 10:00, Fabrice Le Fessant = wrote: > On Mon, Sep 30, 2013 at 10:07 AM, Francois Berenger w= rote: >> # time ./build.sh >> real 0m9.397s >>=20 >> Compile time after, with obuild: >> # obuild clean && time (obuild configure && obuild build -j 1) >> real 0m3.624s >=20 > If you compile with "-j 1", where does the speed-up come from ? Is > Oasis using bytecode commands instead of native-code commands ? Could > you ask the two tools to display the commands they are calling, to > understand the difference ? OASIS runs every single build command through ocamlfind. Moving that to the configure phase gives a big speedup for almost any project with a non-trivial number of source files. -anil