English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] GC and preventing data relocation
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-03-24 (08:58)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] GC and preventing data relocation
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.

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