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.5 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 07DB8BC0A for ; Wed, 6 Jun 2007 19:05:27 +0200 (CEST) Received: from smtp.janestcapital.com (janestcapital.com [66.155.124.107]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l56H5Qoi023795 for ; Wed, 6 Jun 2007 19:05:26 +0200 Received: from [172.25.131.105] [38.96.172.125] by janestcapital.com with ESMTP (SMTPD-9.10) id A9600294; Wed, 06 Jun 2007 13:05:36 -0400 Message-ID: <4666E953.5070605@gnu.org> Date: Wed, 06 Jun 2007 13:05:23 -0400 From: Sam Steingold User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: skaller Cc: caml-list@inria.fr Subject: Re: compiling large file hogs RAM and takes a long time. References: <4666E11F.6000308@podval.org> <1181148686.6546.0.camel@rosella.wigram> In-Reply-To: <1181148686.6546.0.camel@rosella.wigram> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 4666E956.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hash:01 parser:01 ocaml:01 variants:01 ocamlopt:01 ocamlopt:01 bytecode:01 ocamlfind:01 ocamlc:01 polymorphic:01 wrote:01 wrote:01 kernel:01 variant:02 variant:02 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 skaller wrote: > On Wed, 2007-06-06 at 12:30 -0400, Sam Steingold wrote: >> >> I wrote a parser generator for a tick data file. >> The generated OCaml file is ~1Mb and contains ~120 variant type >> definitions (each with 2 to ~100 variants) plus one polymorphic variant >> type. >> When I compiled it with ocamlopt (3.09.3), it took almost 10 minutes and >> consumed ~500MB RAM (Firefox and Thunderbird were killed by the kernel >> to make space for ocamlopt). > > Use ocamlopt.opt .. ocamlopt is actually a bytecode program .. actually, I use omake and what I see is "ocamlfind ocamlc ...". -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGZulTPp1Qsf2qnMcRAiICAJ47QKCgtDnr8eBD904qDBY79zhc/wCeLpQ+ zUgkpYY9u5oOEgZypvi3FYY= =wf5J -----END PGP SIGNATURE-----