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

Maciej Woźniak commented on PDFBOX-3089:
----------------------------------------

Maybe ConcurrentHashMap should be used instead of
private final Map<Integer, GeneralPath> glyphs = new HashMap<Integer, 
GeneralPath>();
in line 48 ?
(TTFGlyph2D.java)

> Investigate why glyph path caching does not always cache glyph accesses
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-3089
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3089
>             Project: PDFBox
>          Issue Type: Task
>          Components: FontBox
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Priority: Minor
>              Labels: Optimization
>             Fix For: 2.1.0
>
>
> Work in PDFBOX-3088 shows that despite caching glyph paths in 
> TTFGlyph2D.getPathForGID(), there are repeated accesses for the same gid in 
> GlyphTable (which is why that one is now cached as well).



--
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