[
https://issues.apache.org/jira/browse/PDFBOX-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14088216#comment-14088216
]
Tilman Hausherr commented on PDFBOX-2258:
-----------------------------------------
He mentioned the file from PDFBOX-1437. I don't think it is slow, my
understanding of his text is that it is a huge spot in the profiler, and he
thinks there's room for improvement.
> Speed up SampledImageReader#getStencilImage()
> ---------------------------------------------
>
> Key: PDFBOX-2258
> URL: https://issues.apache.org/jira/browse/PDFBOX-2258
> Project: PDFBox
> Issue Type: Wish
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: simon steiner
>
> PDF from PDFBOX-1437
> java -jar ~/pdfbox_th/app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage
> AA.pdf
> org.apache.pdfbox.pdmodel.graphics.color.PDDeviceGray.toRGBImage()
> 31.69913 11,472 ms (31.7%) 11,472 ms
> org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getStencilImage()
> 29.439924 10,654 ms (29.4%) 10,654 ms
> is there some alternative to
> for (int y = 0; y < height; y++)
> {
> for (int x = 0; x < width; x++)
> {
> op
> }
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)