Return-Path: X-Original-To: apmail-metamodel-dev-archive@minotaur.apache.org Delivered-To: apmail-metamodel-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0CF101795B for ; Tue, 8 Sep 2015 13:50:48 +0000 (UTC) Received: (qmail 42839 invoked by uid 500); 8 Sep 2015 13:50:45 -0000 Delivered-To: apmail-metamodel-dev-archive@metamodel.apache.org Received: (qmail 42745 invoked by uid 500); 8 Sep 2015 13:50:45 -0000 Mailing-List: contact dev-help@metamodel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@metamodel.apache.org Delivered-To: mailing list dev@metamodel.apache.org Received: (qmail 42670 invoked by uid 99); 8 Sep 2015 13:50:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Sep 2015 13:50:45 +0000 Date: Tue, 8 Sep 2015 13:50:45 +0000 (UTC) From: =?utf-8?Q?Dennis_Du_Kr=C3=B8ger_=28JIRA=29?= To: dev@metamodel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (METAMODEL-187) ExcelDataContext uses more memory than it needs to for File-based resources. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Dennis Du Kr=C3=B8ger created METAMODEL-187: ------------------------------------------ Summary: ExcelDataContext uses more memory than it needs to fo= r File-based resources. Key: METAMODEL-187 URL: https://issues.apache.org/jira/browse/METAMODEL-187 Project: Apache MetaModel Issue Type: Bug Reporter: Dennis Du Kr=C3=B8ger Priority: Minor ExcelDataContext uses the input stream from resources, even if it is a File= Resource. This is pretty wasteful memory-wise, both according to http://poi= .apache.org/spreadsheet/quick-guide.html#FileInputStream and to own tests; = I made a na=C3=AFve change that uses the internal File of FileResources on = a huge file. With InputStream, getting the defaultSchema used around 950 MB= in average, while it used around 650 in average with the File based versio= n (nothing scientific, just eyeballed in JVisualVM). -- This message was sent by Atlassian JIRA (v6.3.4#6332)