From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA04066; Sun, 24 Feb 2002 18:59:16 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA04224 for ; Sun, 24 Feb 2002 18:59:15 +0100 (MET) Received: from medianet-1v.grolier.fr (medianet-1v.grolier.fr [194.158.98.201]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g1OHxFv27349 for ; Sun, 24 Feb 2002 18:59:15 +0100 (MET) Received: from gregoire.dijon.fr ([213.195.0.6]) by medianet-1v.grolier.fr (8.9.3+Sun/8.9.3) with ESMTP id SAA24586 for ; Sun, 24 Feb 2002 18:59:12 +0100 (CET) Received: from gregoire (localhost [127.0.0.1]) by gregoire.dijon.fr (8.11.2/8.11.2/SuSE Linux 8.11.1-0.5) with SMTP id g1OHwd201269 for ; Sun, 24 Feb 2002 18:58:39 +0100 Date: Sun, 24 Feb 2002 18:58:39 +0100 From: Michel Quercia To: caml-list Subject: Re: [Caml-list] local root registration Message-Id: <20020224185839.3e9860ce.michel.quercia@prepas.org> In-Reply-To: References: X-Mailer: Sylpheed version 0.6.6 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Le Fri, 22 Feb 2002 13:06:16 +0100 Winfried Dreckmann écrivit : > I am thinking of cases, where one uses resizable blocks, which are only > occasionally resized, while usually nothing gets allocated. A good > example is Michel Quercia's "Numerix"... Le Fri, 22 Feb 2002 15:27:41 +0100 Markus Mottl écrivit : > If I am not seriously mistaken, only allocations on the OCaml-heap can > trigger a collection. There is just a small overhead associated with > (un)registering OCaml-values as reachable, but it's certainly a good > idea to remove every kind of unnecessary overhead in > performance-critical code. You are both right, the main reason for protecting begin_roots/end_roots calls behind a capacity check in Numerix is speed performance, especially for mutable big integers which are designed to achieve the highest speed that is possible. But this is not the whole story : I also had to take into account old versions of Ocaml as well as Caml-light (still in use in our French National Education) for which there is only begin_roots/end_roots or push_roots/pop_roots available. Regards, -- Michel Quercia 57 rue abbé Grégoire, 38000 Grenoble http://michel.quercia.free.fr (maths) http://pauillac.inria.fr/~quercia (informatique) mailto:michel.quercia@prepas.org ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners