<?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="2006/02/a8d5306ea95335fa3871ce04b6289eda"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T16:20:48"
  subject="Re: [Caml-list] Map.fold behavior changed"
  prev="2006/02/0d77b7405d73424612a2f87c248a520f"
  next="2006/02/d8c8c595c2902312abd0343084706165"
  prev-in-thread="2006/02/7debb09fa92be1d26614641750c2962b"
  next-in-thread="2006/02/0d77b7405d73424612a2f87c248a520f"
  prev-thread="2006/02/03685ae260718d8812c6a6f0bb6dd87d"
  next-thread="2006/02/579a51a1051b15f49ce25ed80aa0704c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Map.fold behavior changed">
<msg 
  url="2006/02/023f7ed0bf61833401b5b03efebb8ad0"
  from="EEK Cooper &lt;s0567141@s...&gt;"
  author="EEK Cooper"
  date="2006-02-24T11:22:13"
  subject="Map.fold behavior changed">
<msg 
  url="2006/03/e45f07a7921a3913d9b004ba7c5c7a6f"
  from="Nathaniel Gray &lt;n8gray@g...&gt;"
  author="Nathaniel Gray"
  date="2006-03-01T05:20:22"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/18de835f63ea35c07d2aafafc0232ef5"
  from="Nicolas Pouillard &lt;nicolas.pouillard@i...&gt;"
  author="Nicolas Pouillard"
  date="2006-03-01T09:33:05"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
<msg 
  url="2006/02/08aa1f53f8a7c6e0d96156f8e4d2ca20"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T11:44:33"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/7cb32d4d8e2832b81c79ed65945ec6f0"
  from="EEK Cooper &lt;s0567141@s...&gt;"
  author="EEK Cooper"
  date="2006-02-24T13:29:54"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/6cd74be75e657dd668d337c889ce0f93"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T13:44:41"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
<msg 
  url="2006/02/c26c49c6c9ec74064528e5356ed25ba9"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-02-24T14:12:39"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/7debb09fa92be1d26614641750c2962b"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-24T15:43:39"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/a8d5306ea95335fa3871ce04b6289eda"
  from="Jean-Christophe Filliatre &lt;filliatr@l...&gt;"
  author="Jean-Christophe Filliatre"
  date="2006-02-24T16:20:48"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
<msg 
  url="2006/02/0d77b7405d73424612a2f87c248a520f"
  from="Joaquin Cuenca Abela &lt;e98cuenc@y...&gt;"
  author="Joaquin Cuenca Abela"
  date="2006-02-24T16:01:16"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/02/514b7eb51d3714ebddea3b570138d626"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-02-27T12:58:26"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/56eb23e5b5df532f3a96deb2636c64ba"
  from="Ezra Cooper &lt;e.e.k.cooper@s...&gt;"
  author="Ezra Cooper"
  date="2006-03-02T13:57:54"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/edcb6dfeebf66ece60d6082affa6bdff"
  from="N. Owen Gunden &lt;ogunden@p...&gt;"
  author="N. Owen Gunden"
  date="2006-03-03T15:42:01"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/d460e75d3749dde5c0bad5c11de3ab92"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-09T07:15:02"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/231da31d9e4d41bb57a11da6da55987b"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2006-03-13T16:31:59"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/cd3612ec14e188c2bc68a79283052a6c"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-15T07:27:53"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/a50eb96dfda9a8898ea4624cadddb7f5"
  from="Jon Harrop &lt;jon@f...&gt;"
  author="Jon Harrop"
  date="2006-03-15T07:35:48"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
<msg 
  url="2006/03/e64da61b7054e651027c4863ef8992b4"
  from="Alain Frisch &lt;Alain.Frisch@i...&gt;"
  author="Alain Frisch"
  date="2006-03-15T07:40:20"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/6345d4a53c7192c8f5f1f39dc8e31286"
  from="Florian Hars &lt;hars@b...&gt;"
  author="Florian Hars"
  date="2006-03-15T08:41:20"
  subject="Re: [Caml-list] Map.fold behavior changed">
<msg 
  url="2006/03/0bbb58749645b5dedac1994d4d87ba05"
  from="Christophe Raffalli &lt;raffalli@u...&gt;"
  author="Christophe Raffalli"
  date="2006-03-15T21:18:16"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2006/02/ca3552c47ae89b129e527dca531a1a9f"
  from="Brian Hurt &lt;bhurt@s...&gt;"
  author="Brian Hurt"
  date="2006-02-24T15:31:15"
  subject="Re: [Caml-list] Map.fold behavior changed">
</msg>
</msg>
</thread>

<contents>

Brian Hurt writes:
 &gt; 
 &gt; I may take this opportunity to offer a red-black tree implementation of 
 &gt; Map as a replacement, if people are interested.  The advantage a 
 &gt; red-black tree is that it uses one less word of memory per element in a 
 &gt; map.

For  information, I  wrote an  implementation of  Set  using red-black
trees a long time ago. It is available here:

  http://www.lri.fr/~filliatr/software.en.html

Note:  this  code was  even  formally  proved  correct using  a  proof
assistant. Getting Map from Set is rather straightforward.

I also did some benchmarks  to compare red-black trees, patricia trees
and  Ocaml AVLs  and, as  time is  concerned, the  AVLs  were (almost)
always the most efficient.

-- 
Jean-Christophe Filliātre (http://www.lri.fr/~filliatr)

</contents>

</message>

