[opensuse-gnome] Cairo: cairo_text_path question
When I use 'cairo_text_path', I found that it cost too much time at the first running, even more than 3 seconds. My version is 1.0.2 in sled10-sp1. I don't know what can I do to make it faster. Can anyone give me some suggestions? -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
On Tue, 2007-09-18 at 04:32 -0600, David Liang wrote:
When I use 'cairo_text_path', I found that it cost too much time at the first running, even more than 3 seconds. My version is 1.0.2 in sled10-sp1.
Are you using Chinese characters? Cairo / fontconfig got *horribly* slow for CJK sometime around SLED10: http://primates.ximian.com/~federico/docs/2006-GUADEC/how-much-faster/img18.... You may want to build a small, self-contained test case and mail it to the Cairo mailing list. They are pretty interested in this kind of performance pathologies. Federico -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
Thank you. After I debug it, I reach the function which slow my codes. fontconfig/src/fccache.c: FcCacheReadDirs. It searchs all my font dirs and loads them, when it loads a dir with Chinese font, it takes too much time. The problem also exists in other applications but I did not noticebefore..... I got a suggestion from Wu Peng and added the dir to xorg.conf, the problem solved. 在 2007-09-18二的 12:16 -0500,Federico Mena Quintero写道:
On Tue, 2007-09-18 at 04:32 -0600, David Liang wrote:
When I use 'cairo_text_path', I found that it cost too much time at the first running, even more than 3 seconds. My version is 1.0.2 in sled10-sp1.
Are you using Chinese characters? Cairo / fontconfig got *horribly* slow for CJK sometime around SLED10:
http://primates.ximian.com/~federico/docs/2006-GUADEC/how-much-faster/img18....
You may want to build a small, self-contained test case and mail it to the Cairo mailing list. They are pretty interested in this kind of performance pathologies.
Federico
-- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-gnome+help@opensuse.org
participants (2)
-
David Liang
-
Federico Mena Quintero