Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 61918 invoked from network); 23 Aug 2007 02:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 02:20:43 -0000 Received: (qmail 9437 invoked by uid 500); 23 Aug 2007 02:20:40 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 9423 invoked by uid 500); 23 Aug 2007 02:20:40 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 9410 invoked by uid 99); 23 Aug 2007 02:20:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 19:20:40 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of danaiw@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 02:20:39 +0000 Received: by nf-out-0910.google.com with SMTP id k4so298051nfd for ; Wed, 22 Aug 2007 19:20:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BToM3Fn09hNPSYlvvX005lrXanammxhsPEfIJI6bTLvyHE9GOY2prSmibbxbictYKQvXPC9rvBrXjJmpm5VVcBQC2YN8Vvf+SQeFvPYx2fL129IRMBzqarMVb+bC7tnIQLCmoUcuj2FYoTEbv5TZaLwDSh8ScysnKgaoxMDl5Zw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Abvme+V6mjEYHLYrxMzfjehsd0VpWzIzK3CeZ61vEQJTgjIBqP6leYP7F1ID2GO1mkbMRkS/Dm3Re/ET0ohcJv56eEY1fTf5Nlzg3mC+UxlWg0Jk6c0RG46SfOQVOjq1ZARjTu5MufN0Ee5F/P7VTikDHSObpfzO/h97UJ1xr3A= Received: by 10.86.65.11 with SMTP id n11mr984955fga.1187835617312; Wed, 22 Aug 2007 19:20:17 -0700 (PDT) Received: by 10.86.52.19 with HTTP; Wed, 22 Aug 2007 19:20:17 -0700 (PDT) Message-ID: Date: Wed, 22 Aug 2007 19:20:17 -0700 From: "Danai Wiriyayanyongsuk" To: uima-user@incubator.apache.org Subject: Re: Questions regarding the Heap class and the heap size. In-Reply-To: <2787e08a0708220832y21d2736sc8d9b698e6891290@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_54577_21551158.1187835617250" References: <46CA4DC0.7070905@schor.com> <46CADE9C.1030204@gmx.de> <46CBF3DA.6070609@gmx.de> <2787e08a0708220832y21d2736sc8d9b698e6891290@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_54577_21551158.1187835617250 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Adam Lally wrote: > Just to clarify: a notable exception is that Strings aren't stored on > the heap. So storing long strings (including the document text) will > not increase the heap size. However, using large arrays *will* > increase the heap size. Thanks Thilo and Adam for the helpful information. I'd like to understand a bit more on the quote "However, using large arrays *will* increase the heap size". From my understanding, not all types of arrays have their size impact the heap (Heap.heap) size. Specifically: The sizes of the following array types *impact* the size of the heap: - integer and float (as the values will be directly stored in the heap) - String and other feature structures (as the address of each element pointing to the related position on other heaps will be stored in the heap) On the other hands, the sizes of the following array types do *not* impact the size of the heap: - boolean, byte, short, long and double (as there are different heaps to store the data) Is my understanding correct? Thanks, Danai Wiriyayanyongsuk ------=_Part_54577_21551158.1187835617250--