[cairo] [PATCH] scaled-font: optimize cairo_scaled_font_text_to_glyphs()

cu cairouser at yahoo.com
Fri Jun 11 18:50:24 PDT 2010


Yes, right here on this mailing list.
http://lists.freedesktop.org/archives/cairo/2009-June/017451.html.

I think Chris explained to me that the slow-down (about x10 for overall
runtime even though text is only about 5% of the normal CPU use) is the
result of some sort of font cache being removed. So we had to implement
our own cache on top of Cairo just to work around something that before
then worked perfectly without any additional code.

This "toy" font API issue just makes me wonder. When "toy" designation
was removed,  I was very much hoping it will get some attention as a
fully-fledged API. Instead it is being slowly taken apart without any
suitable replacement. Please don't make it any slower - I am sure there
are more applications that depend on it.


Behdad Esfahbod wrote:
> On 06/11/2010 08:38 PM, cu wrote:
>   
>>  It already became much slower when the font lookup that was cached
>> started being made on every single font selection (terrible decision,
>> that necessitated our own higher level cache).
>>     
>
> Did you report it?
>
> behdad
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>   



More information about the cairo mailing list