caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ken Wakita <wakita@is.titech.ac.jp>
To: Eray Ozkural <erayo@cs.bilkent.edu.tr>,
	zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN
	<michael.marchegay@rd.francetelecom.com>,
	caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Deep copy
Date: Tue, 16 Jul 2002 00:33:57 +0900	[thread overview]
Message-ID: <B9591A75.2D8A%wakita@is.titech.ac.jp> (raw)
In-Reply-To: <200207151743.52019.erayo@cs.bilkent.edu.tr>


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


  reply	other threads:[~2002-07-15 15:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-15 10:06 zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN
2002-07-15 13:42 ` Ken Wakita
2002-07-15 14:43   ` Eray Ozkural
2002-07-15 15:33     ` Ken Wakita [this message]
2002-07-15 23:09   ` Ken Wakita
2002-07-15 15:02 ` Eray Ozkural
2002-07-15 15:27   ` Nicolas Cannasse
2002-07-15 15:40     ` Eray Ozkural
2002-07-15 16:22 ` sebastien FURIC
2002-07-15 15:24 zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN
2002-07-15 15:24 ` Eray Ozkural
2002-07-15 18:18   ` Alessandro Baretta
2002-07-15 19:53 ` Alessandro Baretta
2002-07-15 22:35   ` John Prevost
2002-07-15 23:03     ` Alessandro Baretta
2002-07-16  8:19       ` John Prevost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B9591A75.2D8A%wakita@is.titech.ac.jp \
    --to=wakita@is.titech.ac.jp \
    --cc=caml-list@inria.fr \
    --cc=erayo@cs.bilkent.edu.tr \
    --cc=michael.marchegay@rd.francetelecom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).