[ 
https://issues.apache.org/jira/browse/PDFBOX-2095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Petr Slaby updated PDFBOX-2095:
-------------------------------

    Attachment: GlyfDescript.java.patch

Proposed patch attached

> 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: 2.0.0
>            Reporter: Petr Slaby
>            Priority: Minor
>         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)

Reply via email to