[
https://issues.apache.org/jira/browse/PDFBOX-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler reopened PDFBOX-1702:
----------------------------------------
Please don't close tickets on your own. We are using the status to indentify
all tickets which belong to a specific version if we put the build together.
Further more I'm pretty sure that this improvement will be part of the next
1.8.x release, so that we have to modify some of the properties of this ticket
which can't be done if it's already close.
Don't worry, these are just some "internal rules".
> Performance improvement in PDPageContentStream.drawString
> ---------------------------------------------------------
>
> Key: PDFBOX-1702
> URL: https://issues.apache.org/jira/browse/PDFBOX-1702
> Project: PDFBox
> Issue Type: Improvement
> Components: Writing
> Affects Versions: 1.8.2
> Reporter: Philip Helger
> Assignee: Andreas Lehmkühler
> Fix For: 2.0.0
>
> Attachments: PDPageContentStreamFast.java
>
>
> There is a simple way of improving the performance of drawString by replacing
> string.writePDF( buffer );
> appendRawCommands( new String( buffer.toByteArray(), "ISO-8859-1"));
> appendRawCommands( SPACE );
> with
> string.writePDF( buffer );
> appendRawCommands( buffer.toByteArray() );
> appendRawCommands( SPACE );
> as the appendRawCommands(String) simple does a
> appendRawCommands(str.getBytes( "ISO-8859-1" ));
> Therefore this optimization should spare the String creation as well as the
> conversion back to a byte array.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira