[ 
https://issues.apache.org/jira/browse/PDFBOX-2860?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15124052#comment-15124052
 ] 

John Hewson commented on PDFBOX-2860:
-------------------------------------

{quote}
We cant use file since input could be a non file.
{quote}

As Andreas says, in this case, PDFBox will simply copy your stream to a 
temporary file and then read that instead.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to