[Poppler-bugs] [Bug 17606] New: Eliminate duplicate open cairo_font_face_t

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 16 05:32:34 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=17606

           Summary: Eliminate duplicate open cairo_font_face_t
           Product: poppler
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: cairo backend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: chris at chris-wilson.co.uk


Created an attachment (id=18920)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=18920)
Check for duplicate open fonts

When loading multiple PDFs the font streams are often copies of fonts kept
alive in the caches. By keeping a list of open fonts faces, we can scan for
duplicates - the number of open faces should remain small, so a simple list is
sufficient - and return a reference to the existing cached font instead of
creating a new FT_Face.

As an example, this reduces the RSS of the Poppler converter in the Cairo test
suite from over 900MiB to just 90MiB.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list