From dev-return-59399-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed Nov 7 19:38:04 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 3F6EA18067A for ; Wed, 7 Nov 2018 19:38:04 +0100 (CET) Received: (qmail 81269 invoked by uid 500); 7 Nov 2018 18:38:03 -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 81258 invoked by uid 99); 7 Nov 2018 18:38:03 -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, 07 Nov 2018 18:38:03 +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 E138F18581A for ; Wed, 7 Nov 2018 18:38:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] 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 QY7H-siJGRX4 for ; Wed, 7 Nov 2018 18:38:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1E5CE621F6 for ; Wed, 7 Nov 2018 18:38:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66E0EE0F4C for ; Wed, 7 Nov 2018 18:38:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1051E266A9 for ; Wed, 7 Nov 2018 18:38:00 +0000 (UTC) Date: Wed, 7 Nov 2018 18:38:00 +0000 (UTC) From: "Tim Allison (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PDFBOX-4370) Jempbox's ResourceEvent crazily slow to initialize MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Tim Allison created PDFBOX-4370: ----------------------------------- Summary: Jempbox's ResourceEvent crazily slow to initialize Key: PDFBOX-4370 URL: https://issues.apache.org/jira/browse/PDFBOX-4370 Project: PDFBox Issue Type: Task Components: JempBox Affects Versions: 1.8.16 Reporter: Tim Allison Attachments: slow.zip In our new batch of regression files on Tika, one of the new PDFs caused a timeout. This is not an infinite loop, but it does take several minutes. This may not be fixable. Admittedly, the XMP is large, and there are quite a few events. This is the code that triggers the problem. {noformat} XMPMetadata xmp = XMPMetadata.load(is); XMPSchemaMediaManagement mmSchema = xmp.getMediaManagementSchema(); mmSchema.getHistory(); {noformat} The slow part _seems_ to be setting the attribute namespace when creating a new ResourceEvent. When I comment out the following in ResourceEvent's initializer, the processing time is quite fast (1 second). {noformat} parent.setAttributeNS( XMPSchema.NS_NAMESPACE, "xmlns:stEvt", NAMESPACE ); {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org