From: Dawid Toton <d0@wp.pl>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Toplevel - loading dependencies
Date: Fri, 09 Jan 2009 18:13:07 +0000 [thread overview]
Message-ID: <496793B3.1080801@wp.pl> (raw)
In-Reply-To: <200901091814.08168.fmonnier@linux-nantes.fr.eu.org>
> in case you're doing so this way:
> ocamlc -o my.cma mod1.ml mod2.ml mod3.ml mod4.ml
>
> this will recompile everything,
> but you can use in your makefile:
> (...)
> then you don't recompile everything, only the modified module
>
Yes, with ocamlbuild I need not to recompile everything, but it's slow
traversing even nothing-to-be-done tree:
Finished, 432 targets (411 cached) in 00:00:08.
It takes already 8 seconds if nothing is touched.
If I edit few files, it's worse:
Finished, 432 targets (256 cached) in 00:00:49.
I'm looking for alternatives.
That's why I try with scripting: keep core libraries compiled and run
outermost parts with an interpreter.
Another idea is to change ocamlbuild to work dynamically: keep the
dependency tree in memory and update it from time to time, watching
files on disk.
Dawid
next prev parent reply other threads:[~2009-01-09 18:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-09 14:23 Dawid Toton
2009-01-09 14:33 ` [Caml-list] " Matthieu Dubuget
2009-01-09 17:14 ` Florent Monnier
2009-01-09 18:13 ` Dawid Toton [this message]
2009-01-09 17:53 ` Peng Zang
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=496793B3.1080801@wp.pl \
--to=d0@wp.pl \
--cc=caml-list@yquem.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