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 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:  FAQ:
To unsubscribe, mail  Archives: