Test procedure:

Open PdfBox Debugger, load PDF, capture render time from label in lower
left corner of window.


With PdfBox 2.0.17 - this PDF renders in about 4.8 seconds (but is missing
the colored pattern).

With PdfBox 3 baseline (no code changes) - this PDF renders in 16.2 seconds
seconds.

With PdfBox 3 caching changes only (no BigBufferedImage) - this PDF renders
in 14.7 seconds


So I have not done any damage, and I've sped it up a little bit.


But that's only with a single render.  Because printing can involve
rendering many times for banded printing (on my test device, I am seeing
well over 100 bands when printing this sample file), the page level caching
should be substantial (the rendering on your test PDF is so slow that it
almost can't be printed) - it is certainly a huge improvement for my test
document.


So I think my improvements to the caching (both the tile cache and adding
caching at the page level) are valid.

- K

Kevin Day

*trumpet**p| *480.961.6003 x1002
*e| *ke...@trumpetinc.com
www.trumpetinc.com <http://trumpetinc.com/>
LinkedIn <https://www.linkedin.com/company/trumpet-inc.>| Trumpet Blog
<http://trumpetinc.com/blog/>| Twitter  <https://twitter.com/trumpetinc>

Proud to be Great Place To Work
<https://www.greatplacetowork.com/certified-company/7012667> certified
since 2019


On Sun, Nov 7, 2021 at 8:34 PM Tilman Hausherr <thaush...@t-online.de>
wrote:

> Hi,
>
> I don't have much time right now, but please test your change with the
> file from
>
> https://issues.apache.org/jira/browse/PDFBOX-3688
>
> Tilman
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>

Reply via email to