From dev-return-58646-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed Oct 3 20:05:36 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 3120B18065B for ; Wed, 3 Oct 2018 20:05:36 +0200 (CEST) Received: (qmail 2898 invoked by uid 500); 3 Oct 2018 18:05:35 -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 2887 invoked by uid 99); 3 Oct 2018 18:05:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2018 18:05:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4A72E180787 for ; Wed, 3 Oct 2018 18:05:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.48 X-Spam-Level: ** X-Spam-Status: No, score=2.48 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, KAM_MXURI=1.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4TzDbS_E15nu for ; Wed, 3 Oct 2018 18:05:32 +0000 (UTC) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CEB065F52B for ; Wed, 3 Oct 2018 18:05:31 +0000 (UTC) Received: from fwd17.aul.t-online.de (fwd17.aul.t-online.de [172.20.27.64]) by mailout09.t-online.de (Postfix) with SMTP id ECA5B4255557 for ; Wed, 3 Oct 2018 20:05:24 +0200 (CEST) Received: from [192.168.2.105] (bNcLfBZS8h3Db9f8EeMftu8hquhBZwMLhZtbens1n-Ri3eZin5LhT6gQtdwYiIAZgW@[84.151.176.140]) by fwd17.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1g7lWO-0Ljxk80; Wed, 3 Oct 2018 20:05:16 +0200 Subject: Re: Rendering images from PDF files slower in OpenJDK To: dev@pdfbox.apache.org References: From: Tilman Hausherr Message-ID: <495b24ca-dc16-f493-ae1f-2bf5058ee0d1@t-online.de> Date: Wed, 3 Oct 2018 20:08:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-ID: bNcLfBZS8h3Db9f8EeMftu8hquhBZwMLhZtbens1n-Ri3eZin5LhT6gQtdwYiIAZgW X-TOI-MSGID: 3d21ae51-6e4b-4a7b-9bf7-f131ca4f32b2 I'm confused by http://mail.openjdk.java.net/pipermail/2d-dev/2018-October/009490.html looking at the two graphics, in http://cr.openjdk.java.net/~lbourges/pdfbox_profiles/jdk8_Call_Tree.html the problem is that "org.apache.pdfbox.pdmodel.graphics.color.PDDeviceCMYK.toRGBImage" hasn't been expanded, maybe because it is so fast. I'd expect to see ColorConvertOpĀ  there too. (I tried with jdk8 and it is there). In the other graphic it was expanded and it is slow... for me the culprit is (once again) ColorConvertOp and LCMS. It thought they had fixed LCMS... it got much faster since 1.8.181. Maybe the tool that creates these graphics expands only the slow parts, to show devs "where it hurts". SampledImageReader doesn't do anything OS dependent. I don't see why there would be a "different path". In http://mail.openjdk.java.net/pipermail/2d-dev/2018-October/009498.html there is a java program that does benchmarking (but with an blank image!!!!!). Could you run this on your system? I could expand that one later so that it uses the raster of the actual JPEG image from your PDF. Tilman Am 03.10.2018 um 18:47 schrieb Daniel Persson: > Hi everyone. > > I was doing some preparation to upgrade to OpenJDK 11 and found that image > rendering was slower. > > I've talked about it here before but as it is a problem in the jvm I > thought that opening a bug at oracle could be good. > > If interested you can follow the issue below: > > https://bugs.openjdk.java.net/browse/JDK-8211178 > > Or following the 2d-dev mailing list at openjdk where we discuss our > findings. > > Best regards > Daniel > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org