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 5F2BB102DC for ; Sat, 12 Dec 2015 15:31:47 +0000 (UTC) Received: (qmail 37228 invoked by uid 500); 12 Dec 2015 15:31:47 -0000 Delivered-To: apmail-pdfbox-dev-archive@pdfbox.apache.org Received: (qmail 37204 invoked by uid 500); 12 Dec 2015 15:31: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 37193 invoked by uid 99); 12 Dec 2015 15:31:47 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Dec 2015 15:31:47 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B04B52C1F57 for ; Sat, 12 Dec 2015 15:31:46 +0000 (UTC) Date: Sat, 12 Dec 2015 15:31: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-3151) getStringWidth is terribly slow (and resulting document is invalid) 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-3151?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D150= 54358#comment-15054358 ]=20 ASF subversion and git services commented on PDFBOX-3151: --------------------------------------------------------- Commit 1719701 from [~lehmi] in branch 'pdfbox/trunk' [ https://svn.apache.org/r1719701 ] PDFBOX-3151: optimize the Hashmap access based on Philip Helgers proposal, = DRY refactoring > getStringWidth is terribly slow (and resulting document is invalid) > ------------------------------------------------------------------- > > Key: PDFBOX-3151 > URL: https://issues.apache.org/jira/browse/PDFBOX-3151 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.0 > Environment: 2.0.0-RC2 > Reporter: Philip Helger > Assignee: Andreas Lehmk=C3=BChler > Fix For: 2.0.0 > > Attachments: 3151-2.patch, 3151.patch, HelloWorldType0.java, Prof= iling after Andreas changes.png, Profiling screenshot.png > > > I'm maintaining a PDF layout engine that makes heavy use of "getStringWid= th". With PDFBox 2.0.0 this got much slower. So please find attached an exa= mple which you can use for profiling purposes. I used "OpenSans" TTF as the= basis (grab it at https://github.com/google/fonts/tree/master/apache/opens= ans). > Beside it being slow, the created PDF cannot be opened (but this may have= something to do with PDFBOX-2945 in RC2???) -- 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