You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/16 17:53:41 UTC

[jira] [Commented] (PDFBOX-3688) Cache TilingPaint generation

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

ASF subversion and git services commented on PDFBOX-3688:
---------------------------------------------------------

Commit 1783258 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1783258 ]

PDFBOX-3688: add equal() and hashCode()

> Cache TilingPaint generation
> ----------------------------
>
>                 Key: PDFBOX-3688
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3688
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.4
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.5, 2.1.0
>
>         Attachments: gs-bugzilla692158-schleuse-veryslow.pdf
>
>
> The attached file gs-bugzilla692158-schleuse-veryslow.pdf is extremely slow to render. It takes hours. The cause is that identical TilingPaint objects are generated again and again, i.e. each time the pattern image must be drawn again. I tried a very simple caching mechanism and now the file renders in 20 seconds.
> Although the very basic caching worked for all test files, it can't be used because parameters could change: initial matrix, xform, color and colorspace.
> For this I'll use a factory class that has a class to compare the parameters, and this is to be used as key.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org