Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2095

Useless memory allocation in GlyfDescript

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.8.5, 1.8.6, 2.0.0
    • 1.8.6, 2.0.0
    • FontBox
    • None

    Description

      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.

      Attachments

        1. GlyfDescript.java.patch
          0.5 kB
          Petr Slaby

        Activity

          People

            tilman Tilman Hausherr
            pslabycz Petr Slaby
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: