Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Deep copy
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Ken Wakita <wakita@i...>
Subject: Re: [Caml-list] Deep copy

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 <erayo@cs.bilkent.edu.tr>
> Organization: Bilkent University CS Dept.
> Date: Mon, 15 Jul 2002 17:43:52 +0300
> To: Ken Wakita <wakita@is.titech.ac.jp>, zze-MARCHEGAY Michael stagiaire
> FTRD/DTL/LAN <michael.marchegay@rd.francetelecom.com>, caml-list
> <caml-list@inria.fr>
> 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 <erayo@cs.bilkent.edu.tr>
> 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