From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id CBBFFBB81 for ; Tue, 4 Apr 2006 01:45:14 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k33NjEdL021802 for ; Tue, 4 Apr 2006 01:45:14 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA22075 for ; Tue, 4 Apr 2006 01:45:13 +0200 (MET DST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.197]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k33NjCCt021796 for ; Tue, 4 Apr 2006 01:45:13 +0200 Received: by zproxy.gmail.com with SMTP id 4so1259084nzn for ; Mon, 03 Apr 2006 16:45:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HS3jDT1mcH1e8NmKNukZmNRHG9dTY7ku3N4cmxMB72Lb2eBZg6l1Ln8S0tW3h2vzwlg0z9CQRsNH+l2FECsReNRDhgCt1ekeaQlv7MAJqyC2BEcXuKAp1BCutdfDiCdIOX3bsso+c5wuBtQmWqCHZ4qpVbjUp5M4Z6o9ghMstCI= Received: by 10.37.22.32 with SMTP id z32mr2274376nzi; Mon, 03 Apr 2006 16:45:12 -0700 (PDT) Received: by 10.36.55.10 with HTTP; Mon, 3 Apr 2006 16:45:12 -0700 (PDT) Message-ID: Date: Mon, 3 Apr 2006 16:45:12 -0700 From: "Nathaniel Gray" To: "=?ISO-8859-1?Q?Li-Thiao-T=E9_S=E9bastien?=" Subject: Re: [Caml-list] Documentation request: allocation of bigarrays in C Cc: "Dmitry Bely" , caml-list@inria.fr In-Reply-To: <44303A0A.9020003@crans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442D3667.90904@crans.org> <442E5314.9080804@crans.org> <44303A0A.9020003@crans.org> X-Miltered: at nez-perce with ID 4431B38A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4431B388.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; bigarrays:01 bigarrays:01 parsing:01 parsing:01 ocaml:01 cheers:01 wrote:01 caml-list:01 parsed:01 slower:01 measurements:01 caltech:02 caltech:02 size:95 sebastien:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.3 On 4/2/06, Li-Thiao-T=E9 S=E9bastien wrote: > I do not know in advance the size of the multiple bigarrays to allocate. > This is determined by parsing the file. To speed up the process, the > file is parsed on the C side, which is why I want to do GC-friendly > memory allocation directly from C. Do you have evidence that the parsing would be significantly slower in ocaml? I'm not attacking you, I'm just curious to know if you've made measurements. Cheers, -n8 -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->