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

bai yuan commented on PDFBOX-5779:
----------------------------------

Thank you for your patient response. My previous demo was inappropriate, and I 
have updated my code. Using BufferedInputStream did improve performance, so the 
current difference should be reasonable, right? [^pdfbox.java] 

> Loading font streams has poorer performance compared to loading font files
> --------------------------------------------------------------------------
>
>                 Key: PDFBOX-5779
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5779
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 3.0.1 PDFBox
>            Reporter: bai yuan
>            Priority: Major
>         Attachments: arial.ttf, pdfbox-1.java, pdfbox.java
>
>
> Run the attached program, then open the code on line 41 and comment out the 
> code on line 44, and compare the time consumption of the two font loading 
> methods.
> Why does using font streams have poorer performance compared to using font 
> files? Is this a limitation? If I can only use font streams, are there any 
> ways to improve performance?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to