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 JAA00442; Mon, 24 Mar 2003 09:58:50 +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 JAA00536 for ; Mon, 24 Mar 2003 09:58:49 +0100 (MET) Received: from fichte.ai.univie.ac.at (fichte.ai.univie.ac.at [131.130.174.156]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h2O8wmX17696; Mon, 24 Mar 2003 09:58:48 +0100 (MET) Received: from fichte.ai.univie.ac.at (markus@localhost.ai.univie.ac.at [127.0.0.1]) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-5) with ESMTP id h2O8wlV7013127; Mon, 24 Mar 2003 09:58:47 +0100 Received: (from markus@localhost) by fichte.ai.univie.ac.at (8.12.3/8.12.3/Debian-5) id h2O8wlEQ013126; Mon, 24 Mar 2003 09:58:47 +0100 Date: Mon, 24 Mar 2003 09:58:47 +0100 From: Markus Mottl To: Nicolas Cannasse Cc: Damien Doligez , OCAML Subject: Re: [Caml-list] GC and preventing data relocation Message-ID: <20030324085846.GA12875@fichte.ai.univie.ac.at> Mail-Followup-To: Nicolas Cannasse , Damien Doligez , OCAML References: <20030320151647.GA15121@fichte.ai.univie.ac.at> <4DE5D5EC-5BB8-11D7-856E-0003930FCE12@inria.fr> <20030321163508.GA10107@kiefer.ai.univie.ac.at> <006201c2f1cc$a910ad20$2713f9ca@WARP> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006201c2f1cc$a910ad20$2713f9ca@WARP> User-Agent: Mutt/1.4i Organization: Austrian Research Institute for Artificial Intelligence X-Spam: no; 0.00; caml-list:01 cannasse:01 callbacks:01 ocaml:01 nicolas:01 mottl:02 string:03 heap:03 wrote:03 data:03 markus:04 preventing:05 oefai:05 probably:05 artificial:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 24 Mar 2003, Nicolas Cannasse wrote: > So, what about running a full_major, that should empty the minor heap and > move your string into the major heap. > Or else, explicity create a major heap ocaml block and copy the string into > it ( in not already in major heap ). A full major collection at each call to a string matching function? This would really be out of the question for performance reasons. After some more thinking I have come to the conclusion that it is probably best to just copy the string to the C-heap if callbacks are possible and do matching there. Regards, Markus Mottl -- Markus Mottl markus@oefai.at Austrian Research Institute for Artificial Intelligence http://www.oefai.at/~markus ------------------- 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