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=0.3 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id C917CBBAF for ; Sun, 12 Oct 2008 17:19:38 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8AAH+y8UjRVdkPnGdsb2JhbACMLoZvPgEBAQEBCAkMBxGdegVohgcBAgEDgWmBPg X-IronPort-AV: E=Sophos;i="4.33,397,1220220000"; d="scan'208";a="18612904" Received: from mail-gx0-f15.google.com ([209.85.217.15]) by mail1-smtp-roc.national.inria.fr with ESMTP; 12 Oct 2008 17:19:38 +0200 Received: by gxk8 with SMTP id 8so1857051gxk.3 for ; Sun, 12 Oct 2008 08:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:references:in-reply-to:content-type :content-transfer-encoding:content-disposition:message-id; bh=AutR9UpLn3Yen9wZK+xHzlE2r7Ao+y7O27pDqh6CgHY=; b=K98kuMpAjE/S494MxhjPBQuhrCAs1Godw59vT8pAJFx5sotzbnQEi5iEaD5MHFTkvk ZwQQ7NoQnA1f2wu53LG1avOQLEx7965IkREJzfVUX1W2sv/E0g7fHBAHn5OYNp0MpXp9 pWJP8Roo8s96JgPn0Z198p8ahlZlUmER/MM+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :content-type:content-transfer-encoding:content-disposition :message-id; b=LodX70czL7MQZFbfw+1t037xB85UHRslkcC1Bel3FdXb+s9hezZWtAE//6zgSA7DBG i1zF58G1xnXL1vznEU/5zIcHvAOCNvwwnnFCw0OxIxZ5t9L9SuZynnSyimTCyZH2VFbs XfR41E5SRWDKm3G+1GqGyIrLrPGdnPXrlyMhA= Received: by 10.90.99.6 with SMTP id w6mr3699261agb.88.1223824777303; Sun, 12 Oct 2008 08:19:37 -0700 (PDT) Received: from ?192.168.0.102? (c-24-99-180-210.hsd1.ga.comcast.net [24.99.180.210]) by mx.google.com with ESMTPS id m75sm5379447wrm.34.2008.10.12.08.19.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 12 Oct 2008 08:19:36 -0700 (PDT) From: Peng Zang Reply-To: peng.zang@gmail.com To: caml-list@yquem.inria.fr, Jan Kybic Subject: Re: [Caml-list] Top-level with compiled libraries, Was: ANN OCaml Batteries Included Date: Sun, 12 Oct 2008 11:19:29 -0400 User-Agent: KMail/1.9.7 References: <1223732914.7333.22.camel@Blefuscu> <200810120142.23667.peng.zang@gmail.com> <878wsuw4o8.fsf_-_@fel.cvut.cz> In-Reply-To: <878wsuw4o8.fsf_-_@fel.cvut.cz> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810121119.34925.peng.zang@gmail.com> X-Spam: no; 0.00; ocaml:01 hash:01 byte-code:01 toplevel:01 peng:98 peng:98 hampshire:98 wrote:01 caml-list:01 gnu:03 top-level:03 compiled:04 compiled:04 message-----:05 pgp:05 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday 12 October 2008 05:20:23 am Jan Kybic wrote: > Also, some > of my code is quite computationally intensive, so in byte-code it runs > too slowly. I run into this problem occasionally as well. My solution has always been to make the test problem smaller. Eg. I was writing a driving directions generator (like Mapquest). Testing on the US road network was too slow so I used the state of New Hampshire. The toplevel helps my development and testing. Once things look good, then I run on the real stuff with compiled code. Peng -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQFI8hWGfIRcEFL/JewRAiynAJ97SeeYpPKx4K/IE+xCzHnWbzyRogCgkAxu bw7ze+s3heurBCrjvMQ/qGY= =dgPP -----END PGP SIGNATURE-----