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 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 36260BB84 for ; Mon, 8 Sep 2008 01:31:49 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjwBABMBxEjRVcbolGdsb2JhbACSBT4BAQEBCQUIBw8FmQOFSAEChAg X-IronPort-AV: E=Sophos;i="4.32,354,1217800800"; d="scan'208";a="14673726" Received: from rv-out-0506.google.com ([209.85.198.224]) by mail2-smtp-roc.national.inria.fr with ESMTP; 08 Sep 2008 01:31:48 +0200 Received: by rv-out-0506.google.com with SMTP id f6so1082634rvb.3 for ; Sun, 07 Sep 2008 16:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=v711axr/y7Kd1+d20UXSI2jZmcNLyUE4b041WE0KYFE=; b=KnvgtpqmevTnigC/P4Euqxu3/vEtNdqdDQqQymc/7V1x16ghfmKZ+rgqN/ZnQL+DoG /nvQqVSb7y23PFYt3h2AMra8+ClA77SnRvQJb4tHeXFHq4BXgpxyDAAyDQtkO3gWVGoN xyKCKfAFFcgTFefb/+NsHKqgEiYlldVYxn7uU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=bxlDdw+3y1jDTyA+lKvYsx3vScqdqf17+DSIUe3u/0OSJ6ga+rN/Bc/P2ytb6436RW B4Dh93sFYZ1DGdaAP7qSBLhfO5wOMzKkK5lnmSbu2L4AoSNe6KSHFiHX3cZJbgTZ1oLj qkpELWDQOpEtQ6pMS6nYHcy66A8gPMr1bj41U= Received: by 10.141.29.21 with SMTP id g21mr8386546rvj.248.1220830307342; Sun, 07 Sep 2008 16:31:47 -0700 (PDT) Received: by 10.141.5.12 with HTTP; Sun, 7 Sep 2008 16:31:47 -0700 (PDT) Message-ID: Date: Sun, 7 Sep 2008 16:31:47 -0700 From: "Nathaniel Gray" To: "Jon Harrop" Subject: Re: [Caml-list] New Ocaml Plug-in for NetBeans Cc: "Maxence Guesdon" , caml-list@yquem.inria.fr In-Reply-To: <200808201732.07275.jon@ffconsultancy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1217061979.488ae45b452b9@webmail.inescporto.pt> <20080820082921.5100632e@alcazar.inria.fr> <200808201732.07275.jon@ffconsultancy.com> X-Spam: no; 0.00; ocaml:01 makefile:01 ocamldoc:01 cameleon:01 cheers:01 plug-in:98 20,:98 wrote:01 wrote:01 caml-list:01 optimization:03 optimizing:03 gzip:04 optimized:04 caltech:05 On Wed, Aug 20, 2008 at 9:32 AM, Jon Harrop wrote: > On Wednesday 20 August 2008 07:29:21 you wrote: > >> 2. Use "dump" files to store the results of these tools and Makefile >> targets to produce them (that the way ocamldoc is used in Cameleon for >> browsing documentation) > > I have found -dtypes to be very slow on large code bases and I assume this is > because it generates such huge dump files. Perhaps this could be optimized > somehow? Definitely. .annot files are incredibly bloated. Here's a snippet from a .annot file I have on my hard drive: """ "ra_live.ml" 342 11092 11107 "ra_live.ml" 342 11092 11117 type( Ra_type.code_class ) "ra_live.ml" 343 11121 11139 "ra_live.ml" 343 11121 11147 type( LiveSet.t ) "ra_live.ml" 344 11148 11172 "ra_live.ml" 344 11148 11177 type( Ra_type.label ) "ra_live.ml" 344 11148 11163 "ra_live.ml" 344 11148 11177 type( Ra_type.code_class ) """ See any opportunities for optimization? ;^) In fact, gzip does a pretty fine job of optimizing .annot files. The source file this .annot came from is 15K, the .annot file is 78K, and gzipping it gets it down to 9K. Cheers, -n8 -- >>>-- Nathaniel Gray -- Caltech Computer Science ------> >>>-- Mojave Project -- http://mojave.cs.caltech.edu -->