Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 44822 invoked from network); 23 Oct 2009 18:25:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Oct 2009 18:25:39 -0000 Received: (qmail 49411 invoked by uid 500); 23 Oct 2009 18:25:38 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49337 invoked by uid 500); 23 Oct 2009 18:25:37 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 49327 invoked by uid 99); 23 Oct 2009 18:25:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 18:25:37 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.210.176 as permitted sender) Received: from [209.85.210.176] (HELO mail-yx0-f176.google.com) (209.85.210.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2009 18:25:28 +0000 Received: by yxe6 with SMTP id 6so7321242yxe.13 for ; Fri, 23 Oct 2009 11:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=/bPtQamHkiSkO8E1Ca/OIn+x8iNf9asZkTrYx9EvvlA=; b=jYKB8fyqESzBdKEhSL5h6OolNDDQgQBiQej82Zvg4D1af0LyQV5ffFogWt3r0hCuPb aDY9W2lb0MxPqDOEpA+R08sPkJ3wl17iOZACC/Dxs1FNn9ho9F76SjFXVXwb5jN+uXbJ EI+qF4k2uzFBKCV6rsLJLCkDXHVWF+8wAqFC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=o2UhPiDXTlqgXCk65FxPt51uG6eeSpS1bkB5o1zRMaypNup7XztNYqizxohcnFjKHb +bGTmPcNZRPph96aB6wlDa/QFrFpcPlI2o6EvUZr0Uw1SJm3CEJG3sgk6oyQmk1IckqH 3X5sMqP78m22nHneD0Qm506fBLCUWnLayc3Qc= MIME-Version: 1.0 Received: by 10.100.243.7 with SMTP id q7mr4285268anh.28.1256322307153; Fri, 23 Oct 2009 11:25:07 -0700 (PDT) In-Reply-To: <4AE1F02F.1080702@tmit.bme.hu> References: <4AE1F02F.1080702@tmit.bme.hu> From: Paul Davis Date: Fri, 23 Oct 2009 14:24:47 -0400 Message-ID: Subject: Re: chunked response and couch_doc_open To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org > Hello, > > You can use the erts_debug:size(Term) and erts_debug:flat_size(Term) > functions. They are somewhat > documented here: http://www.erlang.org/doc/efficiency_guide/processes.html . > Note that the returned > value is in words and not bytes (see erlang:system_info(wordsize). ). > > Zoltan. > Zachary, Most interesting, but I'm a bit confused by what its reporting: 1> erts_debug:size("stuff") * erlang:system_info(wordsize). 80 2> size(term_to_binary("stuff")). 9 Is it really using 80 bytes internally to represent that? Paul Davis