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 C94DABC88 for ; Fri, 4 Feb 2005 17:01:16 +0100 (CET) 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 j14G1G5Q004190 for ; Fri, 4 Feb 2005 17:01:16 +0100 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 RAA29289 for ; Fri, 4 Feb 2005 17:01:15 +0100 (MET) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.191]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j14G1FFF004185 for ; Fri, 4 Feb 2005 17:01:15 +0100 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Cx5tT-0003Cb-00; Fri, 04 Feb 2005 17:01:15 +0100 Received: from [80.129.107.185] (helo=gate.lan.gerd-stolpmann.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1Cx5tS-0000Ky-00; Fri, 04 Feb 2005 17:01:14 +0100 Received: from mydomain.com (localhost [127.0.0.1]) by gate.lan.gerd-stolpmann.de (Postfix) with SMTP id 419B9C053; Fri, 4 Feb 2005 17:01:13 +0100 (CET) Received: from 192.168.0.1 (proxying for 193.194.7.92) (SquirrelMail authenticated user gerd) by gps.dynxs.de with HTTP; Fri, 4 Feb 2005 17:01:13 +0100 (CET) Message-ID: <23777.192.168.0.1.1107532873.squirrel@gps.dynxs.de> Date: Fri, 4 Feb 2005 17:01:13 +0100 (CET) Subject: Re: [Caml-list] Estimating the size of the ocaml community From: "Gerd Stolpmann" To: In-Reply-To: <20050204134304.GC19985@furbychan.cocan.org> References: <20050204.111102.71086746.oandrieu@nerim.net> <005501c50aaa$b35d9560$0100a8c0@mshome.net> <20050204121505.GA31752@furbychan.cocan.org> <23368.192.168.0.1.1107521496.squirrel@gps.dynxs.de> <20050204134304.GC19985@furbychan.cocan.org> Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:a6865a839c0178d9aa0ce41878507ea2 X-Miltered: at nez-perce with ID 42039C4C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42039C4B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 gerd:01 stolpmann:01 afaik:01 gerd:01 stolpmann:01 viktoriastr:01 64293:01 darmstadt:01 encode:01 strings:01 strings:01 opaque:01 data:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO, RCVD_FAKE_HELO_DOTCOM autolearn=disabled version=3.0.2 X-Spam-Level: Richard W. M. Jones said: >> If one wanted really to improve the situation, it would be better to >> change the representation of strings, and to encode the string length >> in the first word after the header. This wastes much less memory >> (except in the special case when you have many small strings), and is >> probably neutral for the execution speed. > > But then you'd need a special case to handle values-containing- > strings, vs. values-not-containing strings, because you'd always want > to have the size attribute of the header reflect the size of the data > in the value. AFAIK, only the garbarge collector accesses the size attribute in a generic way. So a special case for strings would be needed. I guess it is already there, because strings must be handled as opaque data. Gerd ------------------------------------------------------------ Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany gerd@gerd-stolpmann.de http://www.gerd-stolpmann.de ------------------------------------------------------------