You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2021/04/15 18:51:00 UTC
[jira] [Comment Edited] (PDFBOX-5165) Exceedingly slow processing
of XMPSchemaMediaManagement's getHistory in JempBox
[ https://issues.apache.org/jira/browse/PDFBOX-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17322402#comment-17322402 ]
Tilman Hausherr edited comment on PDFBOX-5165 at 4/15/21, 6:50 PM:
-------------------------------------------------------------------
The latest change halves the time to run this code:
{code:java}
XMPMetadata xmp = XMPMetadata.load(new FileInputStream("PDFBOX-5165.xml"));
XMPSchemaMediaManagement mediaManagementSchema = xmp.getMediaManagementSchema();
List<ResourceEvent> history = mediaManagementSchema.getHistory();
{code}
but it's still slow, because {{items.item( i )}} is slow, apparently it runs sequentially in java.
was (Author: tilman):
The latest change halves the time to run this code:
{code:java}
XMPMetadata xmp = XMPMetadata.load(new FileInputStream("PDFBOX-5165.xml"));
XMPSchemaMediaManagement mediaManagementSchema = xmp.getMediaManagementSchema();
List<ResourceEvent> history = mediaManagementSchema.getHistory();
{code}
but it's still slow, because {{items.item(i)}} is slow, apparently it runs sequentially in java.
> Exceedingly slow processing of XMPSchemaMediaManagement's getHistory in JempBox
> -------------------------------------------------------------------------------
>
> Key: PDFBOX-5165
> URL: https://issues.apache.org/jira/browse/PDFBOX-5165
> Project: PDFBox
> Issue Type: Task
> Components: JempBox
> Affects Versions: 1.8.16
> Reporter: Tim Allison
> Priority: Trivial
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org