Return-Path: X-Original-To: apmail-pdfbox-dev-archive@www.apache.org Delivered-To: apmail-pdfbox-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 71D5318ACF for ; Fri, 18 Dec 2015 09:57:48 +0000 (UTC) Received: (qmail 66521 invoked by uid 500); 18 Dec 2015 09:57:47 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 66487 invoked by uid 500); 18 Dec 2015 09:57:47 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 66471 invoked by uid 99); 18 Dec 2015 09:57:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2015 09:57:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CCB3E2C1F78 for ; Fri, 18 Dec 2015 09:57:46 +0000 (UTC) Date: Fri, 18 Dec 2015 09:57:46 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-3131) Reduce amount of intermediate data and objects to reduce memory footprint/complexity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-3131?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D150= 63775#comment-15063775 ]=20 ASF subversion and git services commented on PDFBOX-3131: --------------------------------------------------------- Commit 1720742 from [~lehmi] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1720742 ] PDFBOX-3131: preallocate the expected amount of values for collections to a= void massive resizing operations > Reduce amount of intermediate data and objects to reduce memory footprint= /complexity > -------------------------------------------------------------------------= ----------- > > Key: PDFBOX-3131 > URL: https://issues.apache.org/jira/browse/PDFBOX-3131 > Project: PDFBox > Issue Type: Improvement > Components: FontBox > Affects Versions: 2.0.0 > Reporter: Andreas Lehmk=C3=BChler > Assignee: Andreas Lehmk=C3=BChler > Fix For: 2.0.0 > > > The CFFParser holds a lot of intermediate data and produces a lot of obje= cts to do so. The idea is to reduce the amount of such objects and dat ot r= educe the memory footprint and the complexity. > - the class IndexData holds intermediate data creates byte array everytim= e when getBytes is called. I'm going to replace the class with a simple lis= t to reduce the memory footprint and the complexity > - remove unused members of private classes > - create a list of strings instead of a list of byte arrays which is used= to create those strings -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org