You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2016/07/12 19:27:20 UTC

[jira] [Resolved] (PDFBOX-3418) Slow string to hex conversion in ToUnicodeWriter

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

Tilman Hausherr resolved PDFBOX-3418.
-------------------------------------
       Resolution: Fixed
         Assignee: Tilman Hausherr
    Fix Version/s: 2.1.0
                   2.0.3

Done. Thank you!

> Slow string to hex conversion in ToUnicodeWriter
> ------------------------------------------------
>
>                 Key: PDFBOX-3418
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3418
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.1, 2.0.2, 2.0.3
>         Environment: Ubuntu 14.04 LTS
>            Reporter: Michael Doswald
>            Assignee: Tilman Hausherr
>            Priority: Trivial
>              Labels: optimization, performance
>             Fix For: 2.0.3, 2.1.0
>
>         Attachments: PDFBOX-3418_PerformanceTest.zip, PDFBOX-3418_ToUnicodeWriter_performance_rev1.patch
>
>
> The ToUnicodeWriter.writeTo(OutputStream) method converts a lot of shorts and strings to hexadecimal strings. This is done with String.format and therefore not very efficient. 
> The ToUnicodeWriter.toHex(int) and ToUnitcodeWriter.stringToHex(String) methods could be rewritten to generate a char-array and being generally more efficient.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org