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

Maruan Sahyoun commented on PDFBOX-6151:
----------------------------------------

I've added {{SlidingBitmapWindow}} together with the unit tests and a JMH 
benchmark as I think this is useful for debugging and comparison purposes. As 
can be seen in PDFBOX-6199 it's correct i.e. all tests pass but compared to a 
pixel-by-pixel it's still slower because of all the function calling overhead. 
The inline sliding bitmap code is the fastest but difficult to test for 
correctness. {{SlidingBitmapWindow}} can serve as a testable boilerplate 
whenever we'd like to look at the performance gains at the cost of readable 
code. 

> Run serenity JBIG2 tests
> ------------------------
>
>                 Key: PDFBOX-6151
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6151
>             Project: PDFBox
>          Issue Type: Task
>          Components: JBIG2
>    Affects Versions: 3.0.4 JBIG2
>            Reporter: Tilman Hausherr
>            Priority: Minor
>             Fix For: 3.0.5 JBIG2
>
>         Attachments: image-2026-04-15-09-22-39-238.png
>
>
> Run the jbig2 files from the serenity tests by Nico Weber to see what happens.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to