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:50)
From: Hendrik Tews <H.Tews@c...>
Subject: Re: [Caml-list] caml_oldify_local_roots takes 50% of the total runtime
skaller <skaller@users.sourceforge.net> writes:

   On Wed, 2006-10-25 at 14:21 -0400, Markus Mottl wrote:

   > It would be great if the GC could be improved in situations where
   > there are many local roots.  This is a pretty common problem when
   > interfacing non-trivial third party libraries, and the clumsy
   > workarounds require writing somewhat error-prone code. 

   Just curious .. but why is there *ever* any need for more than
   one root? If you need to add a root, why not just add to
   an already rooted data structure? Would that solve the problem?

Sure, one should be enough. However having many roots is much
more convenient.