Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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                                   
Austrian Research Institute
for Artificial Intelligence        

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: