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.0 required=5.0 tests=AWL,NORMAL_HTTP_TO_IP autolearn=disabled version=3.1.3 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B115DBC6B for ; Thu, 13 Dec 2007 09:53:01 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj0KAPeBYEdZuyUK/2dsb2JhbACIf4Eimm4 X-IronPort-AV: E=Sophos;i="4.24,161,1196636400"; d="scan'208";a="20267513" Received: from moldavcable.com ([89.187.37.10]) by mail4-smtp-sop.national.inria.fr with ESMTP; 13 Dec 2007 09:53:00 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by moldavcable.com (Postfix) with ESMTP id 8B3841E6329 for ; Thu, 13 Dec 2007 10:51:54 +0200 (EET) Received: from moldavcable.com ([127.0.0.1]) by localhost (mlc-gw-l.moldavcable.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07940-01 for ; Thu, 13 Dec 2007 10:51:39 +0200 (EET) Received: from kas30pipe.moldavcable.com (localhost.localdomain [127.0.0.1]) by moldavcable.com (Postfix) with SMTP id 9A3121E632A for ; Thu, 13 Dec 2007 10:51:39 +0200 (EET) Received: from pm053.mlc.local (pm053 [192.168.50.53]) by moldavcable.com (Postfix) with ESMTP id 60B4B1E6329 for ; Thu, 13 Dec 2007 10:51:39 +0200 (EET) Date: Thu, 13 Dec 2007 10:52:42 +0200 From: dmitry grebeniuk X-Mailer: The Bat! (v3.85.02) Home Reply-To: dmitry grebeniuk Organization: Moldavcable X-Priority: 3 (Normal) Message-ID: <921352207.20071213105242@moldavcable.com> To: caml-list@yquem.inria.fr Subject: announce: objsize-0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-SpamTest-Info: Not protected X-Virus-Scanned: by amavisd-new at moldavcable.com X-Spam: no; 0.00; grebeniuk:01 ocaml:01 ocaml:01 hash:01 tarball:01 dmitry:01 dmitry:01 caml-list:01 tar:01 readme:03 readme:03 library:03 bits:05 table:93 discussion:06 Hello, caml-list. Some time ago there was a discussion about measuring sizes of ocaml values. I've got some "round tuits" and released a library that I use in my programs for some years. Maybe it will be useful for other people too. It is better than pure ocaml solutions because it doesn't build hash table of visited values, and it uses two bits for each visited value in worst case (but in my practice it used no more than 120kb of additional memory when I measured sizes of 300Mb-values). Readme: http://89.187.37.10/gds/objsize/README Tarball: http://89.187.37.10/gds/objsize/objsize-0.1.tar.gz -- WBR, dmitry mailto:gds-mlsts@moldavcable.com