From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA27401; Thu, 12 Jul 2001 09:34:52 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA27397 for ; Thu, 12 Jul 2001 09:34:51 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f6C7Ynn20761; Thu, 12 Jul 2001 09:34:49 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA27393; Thu, 12 Jul 2001 09:34:49 +0200 (MET DST) Date: Thu, 12 Jul 2001 09:34:49 +0200 From: Xavier Leroy To: "Alexander V. Voinov" Cc: caml Subject: Re: [Caml-list] GC and interoperability with C Message-ID: <20010712093448.A27282@pauillac.inria.fr> References: <3B493A40.1B2985FE@quasar.ipa.nw.ru> <20010709155900C.garrigue@kurims.kyoto-u.ac.jp> <3B49C748.9CFB4E6@quasar.ipa.nw.ru> <20010710094419W.garrigue@kurims.kyoto-u.ac.jp> <3B4D3A02.77361186@quasar.ipa.nw.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3B4D3A02.77361186@quasar.ipa.nw.ru>; from avv@quasar.ipa.nw.ru on Wed, Jul 11, 2001 at 10:47:46PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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