Bug 707777

Summary: Extremely long pixmap generation duration
Product: MuPDF Reporter: Jorj <jorj.x.mckie>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: robin.watts
Priority: P2    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Jorj 2024-05-08 11:20:54 UTC
PyMuPDF issue https://github.com/pymupdf/PyMuPDF/issues/3450

Reports a pixmap generation time of about a minute.
File https://github.com/pymupdf/PyMuPDF/files/15245545/temp-6.pdf

Reproducer: mutool convert -o test%d.png temp-6.pdf
Comment 1 Robin Watts 2024-06-20 14:37:32 UTC
Fixed with:

commit 1b5a31833d320da979ea5c61ffd79d36531f2e05
Author: Robin Watts <Robin.Watts@artifex.com>
Date:   Thu Jun 20 15:01:13 2024 +0100

    Bug 707777: Speedup transfer function application.

    Use memoisation to speed the application of transfer functions
    to softmasks.