From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2C7E0BC0B for ; Wed, 17 Jan 2007 20:37:53 +0100 (CET) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0HJbqHQ007282 for ; Wed, 17 Jan 2007 20:37:52 +0100 Received: by an-out-0708.google.com with SMTP id c24so1297429ana for ; Wed, 17 Jan 2007 11:37:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nxt4TM65WLaWuxSK3cklYkUeilfFozkWg6iLh08YPGJvLu5U4pi96/j8z1BOojkM+eE0fQ/j8YuPfal6ArQV/P7ERv6MahuKViJnfcWJVztC/3+F+hUlR5bqwGx0nLFrC50RufbDsXIy+DjeZ5bF/lhOviQag4E3QvRUPruA9+o= Received: by 10.78.47.15 with SMTP id u15mr4891653huu.1169062670770; Wed, 17 Jan 2007 11:37:50 -0800 (PST) Received: by 10.78.159.17 with HTTP; Wed, 17 Jan 2007 11:37:50 -0800 (PST) Message-ID: Date: Thu, 18 Jan 2007 08:37:50 +1300 From: "Jonathan Roewen" To: "Sebastien Ferre" Subject: Re: [Caml-list] marshaling limits Cc: caml-list@yquem.inria.fr, "=?ISO-8859-1?Q?Daniel_B=FCnzli?=" In-Reply-To: <45AE5001.2080709@irisa.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2a1a1a0c0701161248l5a1d9ad9q739da9c593fc5219@mail.gmail.com> <45ADE8FE.5070004@irisa.fr> <45AE41C7.8080409@univ-paris12.fr> <45AE43A9.3090904@irisa.fr> <45AE5001.2080709@irisa.fr> X-j-chkmail-Score: MSGID : 45AE7B10.002 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 45AE7B10.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; marshaling:01 marshalling:01 malloc:01 ocaml:01 irisa:01 bunzli:01 bytecode:01 bytecode:01 beginner's:01 ocaml:01 bug:01 beginners:01 wrote:01 wrote:01 exception:01 I'm sure one of the marshalling functions uses malloc internally. Have you tried Marshal.to_channel? That _should_ avoid using ocaml strings. Jonathan On 1/18/07, Sebastien Ferre wrote: > > Daniel B=FCnzli wrote: > > >> pourtant, je passe bien par un appel a output_value > >> dans un fichier, sans passer par une chaine intermediaire. > > > > Maybe output_value uses a string internally. Try with a bytecode > > version of your executable, an exception should be raised (or have a > > look at the implementaiton of output_value). > > I used a bytecode version. > > I checked the code of output_value, and it uses an internal > string. So it won't work. > > Anyway, I knew I would have to go for a more serious > solution as soon as data get really large. I think of > using something like GDBM. > > Thanks for the help. > Sebastien > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >