Created attachment 18920 [details] [review] 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.
Applied, thank you very much Chris.
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.