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

Tilman Hausherr edited comment on PDFBOX-5310 at 10/30/21, 10:34 AM:
---------------------------------------------------------------------

Changing this from
{code:java}
 if (src.getWidth() == 1 || src.getHeight() == 1){code}
to
{code:java}
 if (raster.getWidth() * raster.getHeight() < 100){code}
make a few renderings worse, e.g. the attached file (bottom left).

JDK18 will have a fix for the slow performance of ColorConvertOp (I haven't 
tested it).

[https://bugs.openjdk.java.net/browse/JDK-8041125]


was (Author: tilman):
Changing this make a few renderings worse, e.g. the attached file (bottom left).

JDK18 will have a fix for the slow performance of ColorConvertOp (I haven't 
tested it).

> Slow rendering for specific PDF File with small chunks 16x8
> -----------------------------------------------------------
>
>                 Key: PDFBOX-5310
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5310
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Oliver Schmidtmer
>            Priority: Major
>         Attachments: PDFJS-3096.pdf, TestAusgangsbeleg.pdf
>
>
> I have another PDF with many small chunks. From PDFBOX-5051 we see chunk 
> sizes of either 1px with or height.
> This PDF contains chunks with a size of ~16x8 and rendering times could also 
> be improved by a huge factor if the conditions at 
> [https://github.com/apache/pdfbox/blob/283d6f8cdd1695ebe8515355b17ddea7527b5f96/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/color/PDColorSpace.java#L349]
>  are changed accordingly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to