Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 88858 invoked from network); 24 Jan 2011 11:27:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jan 2011 11:27:46 -0000 Received: (qmail 41621 invoked by uid 500); 24 Jan 2011 11:27:46 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 41364 invoked by uid 500); 24 Jan 2011 11:27:43 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 41356 invoked by uid 99); 24 Jan 2011 11:27:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jan 2011 11:27:42 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nick.burch@alfresco.com designates 207.126.144.113 as permitted sender) Received: from [207.126.144.113] (HELO eu1sys200aog102.obsmtp.com) (207.126.144.113) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 24 Jan 2011 11:27:33 +0000 Received: from source ([88.151.129.3]) by eu1sys200aob102.postini.com ([207.126.147.11]) with SMTP ID DSNKTT1iENo9edR6WNxWGkuBJGSdAg9wTU4R@postini.com; Mon, 24 Jan 2011 11:27:12 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id 453A428C386 for ; Mon, 24 Jan 2011 11:27:12 +0000 (GMT) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F6ZpooePS6hU for ; Mon, 24 Jan 2011 11:27:11 +0000 (GMT) Received: from urchin.earth.li (urchin.earth.li [212.13.204.73]) (Authenticated sender: nick.burch@alfresco.com) by zimbra.alfresco.com (Postfix) with ESMTP id DACAB28C370 for ; Mon, 24 Jan 2011 11:27:11 +0000 (GMT) Date: Mon, 24 Jan 2011 11:27:11 +0000 (GMT) From: Nick Burch X-X-Sender: nick@urchin.earth.li To: POI Developers List Subject: Re: I want to help reduce memory footprint In-Reply-To: <4D3D25EF.1000103@josephdwagner.info> Message-ID: References: <4D3D25EF.1000103@josephdwagner.info> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org On Sun, 23 Jan 2011, Joseph D. Wagner wrote: > I am particularly interested in reducing the memory footprint around > spreadsheets. Unfortunately, I must confess that I'm having trouble > pealing back all the layers and sifting through all the dependencies. Which kind - HSSF (.xls) or XSSF (.xlsx)? > Is there a developer who is familiar with POI's memory consumption who could > point me in the right direction? You'll probably need to run a profiler against the code for your type of spreadsheet, and see what bubbles up. If you're using XSSF, then you probably want to use the File constructor rather than the InputStream one. For HSSF, since Christmas there's been an experimental POIFS replacement which is more memory efficient, and has a File constructor too. > One specific question I have is where CTCell was defined. Is it in a > library that's outside of POI? It's auto-generated by XMLBeans based on the Microsoft XSDs. If you do a svn checkout, then you can use ant to generate the sources for you through XMLBeans. Any optimisations there are likely to need to happen in the XMLBeans sourcecode though, to get it to generate a more efficient version > Also, I know POI relies on XmlBeans. I was wondering if you were > familiar with any issues there, such as "if you cut z in xmlbeans, it > will save us a lot of memory." I'm not aware of anything, sorry. XmlBeans is another apache project, so you can ask there, but they usually seem to say "It depends on your XML" so you'd probably need to do some profiling first... Nick --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org