Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml <caml-list@inria.fr>
Subject: Re: [Caml-list] Accelerating compilation
Date: Thu, 12 Sep 2013 11:15:42 -0400	[thread overview]
Message-ID: <CAK0y-346WZnAdWHuz1hbvmEvj6qUu2c-=UojtSOCsx157FjN1A@mail.gmail.com> (raw)
In-Reply-To: <52311789.6090606@riken.jp>

[-- Attachment #1: Type: text/plain, Size: 4212 bytes --]

So is anyone working on accelerating compilation? Has any of these
proposals been deemed superior to the others?
On Sep 11, 2013 9:24 PM, "Francois Berenger" <berenger@riken.jp> wrote:

> On 09/11/2013 10:46 PM, Wojciech Meyer wrote:
>
>> What are you trying to prove here?
>>
>
> I am not trying to prove anything.
> I just manage to show something, which is the whole point of a good plot.
>
> > Makefiles will be always faster as
>
>> mentioned before, however there is still space for vast improvement, the
>> biggest elephant here being slow scanning. Patches welcome.
>>
>> Also, it does not show the convenience of using ocamlbuild, in
>> particular dynamic dependency resolver, nice language for specyfing
>> complex rules, tags, and VPATH build that just works (does your makefile
>> VPATH at all?)
>>
>>
>>
>> On Wed, Sep 11, 2013 at 2:00 PM, Francois Berenger <berenger@riken.jp
>> <mailto:berenger@riken.jp>> wrote:
>>
>>     On 9/7/13 5:51 AM, Fabrice Le Fessant wrote:
>>
>>         On Fri, Sep 6, 2013 at 5:20 PM, Romain Bardou
>>         <romain.bardou@inria.fr <mailto:romain.bardou@inria.fr**>> wrote:
>>
>>                     3) Parallel compilation in Ocamlbuild
>>
>>                     Of course it would help but it is not easy to
>>                     implement so I'm just
>>                     putting it there to be exhaustive.
>>
>>
>>                 I'm not sure what you are referring to, OCamlBuild does
>>                 already
>>                 support parallel builds.
>>
>>
>>             Does it? I actually thought the -j option was ignored.
>>
>>             I just did a quick test and I gain about 5 seconds with -j
>>             on a 1min15
>>             build (I had cleaned, recompiled and recleaned before so
>>             that caching by
>>             the file system would not impact the result too much), so it
>>             does seem
>>             to be a *little* faster :)
>>
>>
>>         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.
>>
>>
>>     This morning, I played with a Makefile and ocamlbuild
>>     to build batteries-included from a clean source tree.
>>
>>     The Makefile was provided by Cedric Cellier.
>>
>>     Here follows the wallclock times to build on my eight cores machine.
>>
>>     #You can plot them like this:
>>     cat <<EOF > make_Vs_ocamlbuild.data
>>     #nprocs Makefile ocamlbuild
>>     1 14.52 21.43
>>     2 6.84 17.57
>>     3 4.95 16.44
>>     4 4.18 15.95
>>     5 3.70 15.67
>>     6 3.36 15.62
>>     7 3.12 15.54
>>     8 3.03 15.292
>>     EOF
>>     gnuplot -persist <<EOF
>>     set title 'make Vs ocamlbuild'
>>     set xlabel 'nprocs'
>>     set ylabel 'wallclock time(s)'
>>     plot 'make_Vs_ocamlbuild.data' u 1:2 w lines title 'time -p make
>>     fast -j np', \
>>                                  '' u 1:3 w lines title 'ocamlbuild -j np'
>>     EOF
>>
>>
>>
>>     --
>>     Caml-list mailing list.  Subscription management and archives:
>>     https://sympa.inria.fr/sympa/_**_arc/caml-list<https://sympa.inria.fr/sympa/__arc/caml-list>
>>     <https://sympa.inria.fr/sympa/**arc/caml-list<https://sympa.inria.fr/sympa/arc/caml-list>
>> >
>>     Beginner's list: http://groups.yahoo.com/group/**__ocaml_beginners<http://groups.yahoo.com/group/__ocaml_beginners>
>>     <http://groups.yahoo.com/**group/ocaml_beginners<http://groups.yahoo.com/group/ocaml_beginners>
>> >
>>     Bug reports: http://caml.inria.fr/bin/caml-**__bugs<http://caml.inria.fr/bin/caml-__bugs>
>>     <http://caml.inria.fr/bin/**caml-bugs<http://caml.inria.fr/bin/caml-bugs>
>> >
>>
>>
>>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/**arc/caml-list<https://sympa.inria.fr/sympa/arc/caml-list>
> Beginner's list: http://groups.yahoo.com/group/**ocaml_beginners<http://groups.yahoo.com/group/ocaml_beginners>
> Bug reports: http://caml.inria.fr/bin/caml-**bugs<http://caml.inria.fr/bin/caml-bugs>
>

[-- Attachment #2: Type: text/html, Size: 5603 bytes --]

  reply	other threads:[~2013-09-12 15:15 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06 13:56 Romain Bardou
2013-09-06 14:55 ` Markus Mottl
2013-09-06 15:19   ` Romain Bardou
2013-09-06 15:27     ` Gabriel Scherer
2013-09-06 15:33       ` Alain Frisch
2013-09-06 20:51     ` Fabrice Le Fessant
2013-09-09  7:44       ` Romain Bardou
2013-09-11 13:00       ` Francois Berenger
2013-09-11 13:46         ` Wojciech Meyer
2013-09-12  1:23           ` Francois Berenger
2013-09-12 15:15             ` Jacques Le Normand [this message]
2013-09-30  8:06       ` [Caml-list] from oasis to obuild (original subject was Re: Accelerating compilation) Francois Berenger
2013-09-30  8:18         ` Török Edwin
2013-09-30  9:00         ` Fabrice Le Fessant
2013-09-30  9:13           ` Anil Madhavapeddy
2013-09-30 11:13             ` Alain Frisch
2013-09-30 11:19               ` Anil Madhavapeddy
2013-09-30 11:27                 ` Alain Frisch
2013-09-30 11:36                   ` Anil Madhavapeddy
2013-09-30  9:18           ` Francois Berenger
2013-09-30 14:11         ` Sylvain Le Gall
2013-10-01  0:57           ` Francois Berenger
2013-10-01 12:25             ` Sylvain Le Gall
2013-09-07 11:37     ` [Caml-list] Accelerating compilation Matej Kosik
2013-09-08  6:37     ` Francois Berenger
2013-09-06 15:18 ` Gabriel Scherer
2013-09-06 15:28   ` Romain Bardou
2013-09-06 16:04   ` Markus Mottl
2013-09-06 16:30 ` Xavier Leroy
2013-09-07 19:13   ` Wojciech Meyer
2013-09-07 21:42     ` Jacques-Pascal Deplaix
2013-09-08  1:59       ` Markus Mottl
2013-09-09  7:59   ` Romain Bardou
2013-09-09  8:25   ` Alain Frisch
2013-09-09  8:35     ` Francois Berenger
2013-09-09 10:13     ` Anil Madhavapeddy
2013-09-09 17:08     ` Adrien Nader
2013-09-09 17:17       ` Gabriel Kerneis
2013-09-10  2:01     ` oleg
2013-09-10 10:21       ` Gerd Stolpmann
2013-09-10 16:15       ` Adrien Nader
2013-09-10 16:46       ` Xavier Leroy
2013-09-10 16:53         ` Adrien Nader
2013-09-10 17:43           ` ygrek
2013-09-06 18:45 ` Martin Jambon
2013-09-09  8:15   ` Romain Bardou
2013-09-09  8:36     ` Francois Berenger
2013-09-09  8:41       ` Thomas Refis
2013-09-09 17:32     ` Aleksey Nogin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK0y-346WZnAdWHuz1hbvmEvj6qUu2c-=UojtSOCsx157FjN1A@mail.gmail.com' \
    --to=rathereasy@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox