[ 
https://issues.apache.org/jira/browse/FOP-2190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559507#comment-13559507
 ] 

Luis Bernardo commented on FOP-2190:
------------------------------------

in my tests performance was greatly improved by this change. I did not measure 
though how memory allocation was impacted.

the test was the following:
- use a long text document (around 100 pages) with the Arial font
- generate the PDF using the servlet that ships with FOP, making sure it uses a 
proper configured fop.xconf (i.e., uses the Arial font and does not disable CS)
- use ab (apache benchmark) to make 100 requests and look at the time 
measurements (after allowing for warm up)

note that I also added some time measurements inside the servlet to confirm the 
improvement in performance was not due to reduced HTTP transfer times (i.e., 
was really in the generation of the document)

it is possible that some different tests show other results.
 
                
> decrease PDF file size when CS are enabled 
> -------------------------------------------
>
>                 Key: FOP-2190
>                 URL: https://issues.apache.org/jira/browse/FOP-2190
>             Project: Fop
>          Issue Type: Improvement
>          Components: pdf
>    Affects Versions: 1.1, trunk
>            Reporter: Luis Bernardo
>         Attachments: fop-2190.patch
>
>
> when CS are enabled, the current code may make use of the operators Td and Tj 
> in situations where TJ would be appropriate leading to an increase in file 
> size. note: this happens in the PDFPainter.drawText(). 

--
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

Reply via email to