[
https://issues.apache.org/jira/browse/PDFBOX-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tilman Hausherr resolved PDFBOX-2095.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.0.0
1.8.6
Assignee: Tilman Hausherr
Good find, thanks. Fixed in rev 1597576 for the trunk and rev 1597577 for the
1.8 branch.
> Useless memory allocation in GlyfDescript
> -----------------------------------------
>
> Key: PDFBOX-2095
> URL: https://issues.apache.org/jira/browse/PDFBOX-2095
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox
> Affects Versions: 1.8.5, 1.8.6, 2.0.0
> Reporter: Petr Slaby
> Assignee: Tilman Hausherr
> Priority: Trivial
> Fix For: 1.8.6, 2.0.0
>
> Attachments: GlyfDescript.java.patch
>
>
> GlyfDescript#readInstructions() allocates an int array which is never used
> (replaced by TTFDataStream#readUnsignedByteArray) on the following line.
> While harmless, this still costs some memory and garbage collector time.
--
This message was sent by Atlassian JIRA
(v6.2#6252)