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_oldify_local_roots takes 50% of the total runtime
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-10-26 (09:47)
From: Hendrik Tews <H.Tews@c...>
Subject: Re: [Caml-list] caml_oldify_local_roots takes 50% of the total runtime
"Markus Mottl" <markus.mottl@gmail.com> writes:

   To work around this problem you should store pointers to the C++-objects on
   the C++-side, and e.g. associate them with finalized OCaml-values, or
   handles which allow you to explicitly deallocate the objects.

I don't quite understand: I only have pointers from C++ to ocaml.
Once constructed the ocaml objects are completely independent
from the C++ ones.