[ https://issues.apache.org/jira/browse/PDFBOX-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624595#comment-14624595 ]
Andreas Lehmkühler commented on PDFBOX-2860: -------------------------------------------- I'm not sure what you are trying to achieve by running that test. It's old code and both parsers are behaving totally different, so that it's kind of comparing apples with oranges. Did you try to use a File instead of a FileInputStream? That should speed up the NonSequentialParser ... > NonSeq parser slower than Seq parser > ------------------------------------ > > Key: PDFBOX-2860 > URL: https://issues.apache.org/jira/browse/PDFBOX-2860 > Project: PDFBox > Issue Type: Bug > Components: Parsing > Affects Versions: 2.0.0 > Reporter: simon steiner > > PDF from PDFBOX-797 > for (int i=0; i<1000; i++) { > PDDocument.load(new FileInputStream( > "4218.pdf")).close(); > } > Nonseq: > real 0m23.691s > Seq: > real 0m9.705s -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org