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 RAA16834; Mon, 15 Jul 2002 17:34:11 +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 RAA16219 for ; Mon, 15 Jul 2002 17:34:11 +0200 (MET DST) Received: from tcnwm02.tcn-catv.ne.jp (fw.tcn-catv.ne.jp [61.114.8.229]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6FFY9j00328 for ; Mon, 15 Jul 2002 17:34:09 +0200 (MET DST) Received: from [192.168.0.3] by tcnwm02.tcn-catv.ne.jp (8.11.6/8.11.6) with ESMTP id g6FFXju18542; Tue, 16 Jul 2002 00:33:46 +0900 (JST) User-Agent: Microsoft-Entourage/10.1.0.2006 Date: Tue, 16 Jul 2002 00:33:57 +0900 Subject: Re: [Caml-list] Deep copy From: Ken Wakita To: Eray Ozkural , zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN , caml-list Message-ID: In-Reply-To: <200207151743.52019.erayo@cs.bilkent.edu.tr> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Depends on how large graphs are and how often this facility is used in the application. Marshal.to_string tries to compress the structure into a binary string. Storage allocation, compression, and decompression are potential overhead. If you need faster version, you can make your own. Try look at byterun/extern.c. It's an over-night job, if you are lucky. Ken Wakita > From: Eray Ozkural > Organization: Bilkent University CS Dept. > Date: Mon, 15 Jul 2002 17:43:52 +0300 > To: Ken Wakita , zze-MARCHEGAY Michael stagiaire > FTRD/DTL/LAN , caml-list > > Subject: Re: [Caml-list] Deep copy > > On Monday 15 July 2002 16:42, Ken Wakita wrote: >> How about the following? >> >> Marshal.from_string (Marshal.to_string [Marshal.Closures] obj) 0 >> > > That's guaranteed to be slow isn't it? :) > > -- > Eray Ozkural > Comp. Sci. Dept., Bilkent University, Ankara > www: http://www.cs.bilkent.edu.tr/~erayo > GPG public key fingerprint: 360C 852F 88B0 A745 F31B EA0F 7C07 AE16 874D 539C > ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners