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 interoperability with C
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-07-12 (07:34)
From: Xavier Leroy <Xavier.Leroy@i...>
Subject: Re: [Caml-list] GC and interoperability with C
> I've played a bit with this, and I have an observation that huge amount
> of time is spent on remove_global_root(a). 

I'm not surprised :-)  Currently, remove_global_root is implemented by
linear search in a singly-linked list...

I believe you're the first to really stress-test remove_global_root;
most OCaml applications just register a dozen external roots and never
remove them.

I'll improve the implementation when I find some free time.

- Xavier Leroy
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr