[
https://issues.apache.org/jira/browse/PDFBOX-6287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132209#comment-18132209
]
Andreas Lehmkühler commented on PDFBOX-6287:
--------------------------------------------
We are done here. All the optimizations speed up the processing from 3 up to 30
times, depending on the use case.
I did the following optimizations:
* use an existing cache for all kind of fonts
* introduce a new cache for a codepoint to width mapping to speed up
getStringWidth
* simplify the code including the access to the inverted encoding map
* DRY refactoring
> Optimize getWidth and encode of PDFont
> --------------------------------------
>
> Key: PDFBOX-6287
> URL: https://issues.apache.org/jira/browse/PDFBOX-6287
> Project: PDFBox
> Issue Type: Improvement
> Components: FontBox, PDModel
> Affects Versions: 3.0.8 PDFBox, 4.0.0
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 3.0.9 PDFBox, 4.0.0
>
>
> PDFBOX-6169 and PDFBOX-6170 show some room for optimizations when it comes to
> calculate the width of a string or to encode a string
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]