From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 90979BCAE for ; Thu, 7 Jul 2005 22:04:44 +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 j67K4iRk014576 for ; Thu, 7 Jul 2005 22:04:44 +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 WAA16497 for ; Thu, 7 Jul 2005 22:04:43 +0200 (MET DST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j67K4g4A014573 for ; Thu, 7 Jul 2005 22:04:43 +0200 Received: by wproxy.gmail.com with SMTP id i30so278154wra for ; Thu, 07 Jul 2005 13:04:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HaxfkFyhcyuC2SAFPbolzjXkWPB4sj+pVMV6/V2g+/0hI7OPpQoOqETpVY/EXIzE+0gdZKZ7C3e6Xum/k9xhYyknwNk44SD4vf70ZH/VuZTiEs1qPb+DAvPHVr3ygw/1cmTZkWs2lezIV2mWtNn5xcWq8S3zSd1cnX/SxXDqpOg= Received: by 10.54.141.1 with SMTP id o1mr1036221wrd; Thu, 07 Jul 2005 13:04:42 -0700 (PDT) Received: by 10.54.5.77 with HTTP; Thu, 7 Jul 2005 13:04:42 -0700 (PDT) Message-ID: <875c7e07050707130436636679@mail.gmail.com> Date: Thu, 7 Jul 2005 16:04:42 -0400 From: Chris King Reply-To: Chris King To: David Teller Subject: Re: [Caml-list] Sparse structure Cc: "O'Caml Mailing List" In-Reply-To: <1120765639.9384.42.camel@titania> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <875c7e0705070712273e4231a9@mail.gmail.com> <1120765639.9384.42.camel@titania> X-Miltered: at nez-perce with ID 42CD8ADC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42CD8ADA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ens-lyon:01 constructors:01 wrote:01 structures:01 data:02 sparse:04 structure:04 chris:05 chris:05 problem:05 problem:05 anyway:05 i'd:05 i'd:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: On 7/7/05, David Teller wrote: > What's the problem with just using 'a options ? Most of the values are going to be constant constructors (rather than large pieces of data), so they'll only take up one word anyway. My problem is that I'm going to have hundreds of them, and those hundreds of words is the space I'd like to save. I was thinking of grouping the fields hierarchically in multiple structures, with each one wrapped in an option, but there are reasons I'd rather not do this (mostly because it'd make fields more difficult to access). - Chris