Bug 48964 - Slow rendering of pdf with a lot of image masks in pattern colorspace
Summary: Slow rendering of pdf with a lot of image masks in pattern colorspace
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 04:31 UTC by Thomas Freitag
Modified: 2012-04-25 09:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
create softmask not bigger than necessary (8.72 KB, patch)
2012-04-24 01:06 UTC, Thomas Freitag
Details | Splinter Review

Description Thomas Freitag 2012-04-20 04:31:45 UTC
I got a PDF with 12153 image masks in pattern colorspace. Rendering it with pdftoppm under Windows stops after after over 20 minutes with out of memory.

The implementation of rendering image masks in pattern colorspace should be optimized in the splash backend.
Comment 1 Thomas Freitag 2012-04-24 01:06:21 UTC
Created attachment 60513 [details] [review]
create softmask not bigger than necessary

This patch don't take the whole bitmap for colorizing an image mask with pattern colorspace but just a bitmap which has the size of the image mask itself.
This speeds up the rendering dramatically if a lot of small image masks in pattern colorspace must be rendered.
Comment 2 Albert Astals Cid 2012-04-24 10:21:15 UTC
Do you have any other pdf other than that unshareable one that shows an speed improvement?
Comment 3 Albert Astals Cid 2012-04-25 09:52:03 UTC
Fix commited.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.