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

Tilman Hausherr commented on PDFBOX-2117:
-----------------------------------------

While the lookup table sounds like a good idea at first, I wonder what will 
happen in a multithreading case. There's only one PDDeviceXX object so I think 
the lookup table handling should be secured against multiple requests at the 
same time.

> AxialShadingContext is slow
> ---------------------------
>
>                 Key: PDFBOX-2117
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2117
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Petr Slaby
>         Attachments: AxialShading.patch
>
>
> AxialShadingContext#getRaster() is on top of profiler hot spots in documents 
> that use an axial shading. Inside it, the slowest part is calling 
> PDColorSpaceRGB#toRGB() and PDFunctionType3#eval() (in this order).
>   



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to