<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2009/01/68a29877bfbd573954edce82da5f896a"
  from="Dawid Toton &lt;d0@w...&gt;"
  author="Dawid Toton"
  date="2009-01-09T18:13:14"
  subject="Re: [Caml-list] Toplevel - loading dependencies"
  prev="2009/01/28ab596a711780efefe765f0d5873dc1"
  next="2009/01/3884db1d1064e8341b9e0ba01c22eb72"
  prev-in-thread="2009/01/7dd8b17723f54e4e1f984f635aa1d367"
  next-in-thread="2009/01/c56de9ea8eab932fc48cbbe52c2aff41"
  prev-thread="2009/01/2112b46e78c48d5a1e210bbd83ebb31a"
  next-thread="2009/01/28ab596a711780efefe765f0d5873dc1"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Toplevel - loading dependencies">
<msg 
  url="2009/01/8098af0c31ee2dfc908c6c4b9d081e1e"
  from="Dawid Toton &lt;dawid.toton@u...&gt;"
  author="Dawid Toton"
  date="2009-01-09T14:23:39"
  subject="Toplevel - loading dependencies">
<msg 
  url="2009/01/7bdc002ffff85262050bac81b75cb3df"
  from="Matthieu Dubuget &lt;matthieu.dubuget@g...&gt;"
  author="Matthieu Dubuget"
  date="2009-01-09T14:35:23"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
<msg 
  url="2009/01/7dd8b17723f54e4e1f984f635aa1d367"
  from="Florent Monnier &lt;fmonnier@l...&gt;"
  author="Florent Monnier"
  date="2009-01-09T17:15:36"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
<msg 
  url="2009/01/68a29877bfbd573954edce82da5f896a"
  from="Dawid Toton &lt;d0@w...&gt;"
  author="Dawid Toton"
  date="2009-01-09T18:13:14"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
</msg>
<msg 
  url="2009/01/c56de9ea8eab932fc48cbbe52c2aff41"
  from="Peng Zang &lt;peng.zang@g...&gt;"
  author="Peng Zang"
  date="2009-01-09T17:53:24"
  subject="Re: [Caml-list] Toplevel - loading dependencies">
</msg>
</msg>
</thread>

<contents>
&gt; in case you're doing so this way:
&gt; ocamlc -o my.cma mod1.ml mod2.ml mod3.ml mod4.ml
&gt; 
&gt; this will recompile everything,
&gt; but you can use in your makefile:
&gt; (...)
&gt; then you don't recompile everything, only the modified module
&gt; 

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

</contents>

</message>

