[ 
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:55 PM:
-------------------------------------------------------------------

The latest change halves the time to run this code (before: 71 sec; after: 33 
sec):
{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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to