Bug 707777 - Extremely long pixmap generation duration
Summary: Extremely long pixmap generation duration
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: master
Hardware: All All
: P2 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-08 11:20 UTC by Jorj
Modified: 2024-06-20 14:37 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.