[cairo-bugs] [Bug 44572] PS backend has too high memory requirements (much higher than PDF or SVG)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Jan 8 19:26:51 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=44572
--- Comment #1 from Adrian Johnson <ajohnson at redneon.com> 2012-01-09 03:26:51 UTC ---
The high memory usage is caused by the use of fallback images. When drawing
operations that are not natively supported by PostScript are used on the
PostScript surface cairo will output fallback images containing the unsupported
operations. Cairo will try to find the smallest set of rectangles that will
enclose all unsupported operations and output fallback images for these
rectangles.
It looks like in your case cairo needs to generate a fallback image for the
entire page. You can reduce memory usage by lowering the resolution of the
fallback images (cairo_surface_set_fallback_resolution).
If the PostScript you are generating contains the same content as the PDF file
in bug 44573 the problem is the use of transparency. While PDF supports
transparency, PostScript does not. If you can restrict yourself to only using
opaque colors you will avoid the need for fallback images.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
More information about the cairo-bugs
mailing list